Code Analysis: Photo Reviews for WooCommerce 1.2.4

Function Rating Maintainability Complexity Lines of code
VI_WOO_PHOTO_REVIEWS_Admin_Admin::settings_page()
D
2
48 1,113
VillaTheme_Mobile_Detect::mobileGrade()
D
34 77 43
VI_WOO_PHOTO_REVIEWS_Admin_Admin::save_settings()
D
23
67 116
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::end_ob()
D
25
31 161
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::check_review_image()
D
32 34 89
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::coupon_for_not_logged_in()
C
32 27 106
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::send_coupon_after_reviews()
C
32 24 105
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::follow_up_email()
B
31 19 131
VillaTheme_Support::get_ads_data()
B
41 20 54
VillaTheme_Support::page_callback()
B
38 15 89
VI_WOO_PHOTO_REVIEWS_Admin_Admin::preview_emails_ajax()
B
33 14 100
VI_WOO_PHOTO_REVIEWS_Admin_Admin::admin_enqueue()
B
34 13 93
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::frontend_enqueue()
A
36 14 74
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::overall_rating_and_filter_html()
A
35 11 89
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::parse_comment_query1()
A
44 13 47
VI_WOO_PHOTO_REVIEWS_Admin_Admin::status()
A
42 12 61
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::parse_comment_query()
A
44 12 50
VillaTheme_Support::deactivate_scripts()
A
34 4 169
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::generate_coupon()
A
44 12 41
VillaTheme_Support::hide_notices()
A
47 12 34
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::add_review_image()
A
41 10 57
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::filter_reviews()
A
50 12 26
VI_WOO_PHOTO_REVIEWS_Admin_Admin::column_callback()
A
47 11 36
VI_WOO_PHOTO_REVIEWS_Admin_Admin::search_product()
A
43 10 50
VI_WOO_PHOTO_REVIEWS_Admin_Admin::update_data()
A
47 10 36
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::__construct()
A
46 10 35
VillaTheme_Support::review_notice()
A
44 9 48
VI_WOO_PHOTO_REVIEWS_Admin_Admin::search_coupon()
A
44 9 44
VI_WOO_PHOTO_REVIEWS_DATA::__construct()
A
32 4 116
vi_include_folder()
A
51 10 26
VillaTheme_Support::get_data()
A
46 9 38
VillaTheme_Support::wp_remote_get()
A
44 8 48
VillaTheme_Support::villatheme_support()
A
43 7 59
VI_WOO_PHOTO_REVIEWS_Admin_Admin::plupload_default_params()
A
60 10 11
VI_WOO_PHOTO_REVIEWS_Admin_Admin::add_meta_box_photo_callback()
A
45 7 48
VillaTheme_Mobile_Detect::version()
A
53 8 21
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::send_schedule_email()
A
40 5 64
VillaTheme_Support::hide_review_notice()
S
52 7 23
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::get_comment_link()
S
53 7 23
VillaTheme_Mobile_Detect::isMobile()
S
55 7 20
VI_WOO_PHOTO_REVIEWS_Admin_Admin::search_cate()
S
49 6 33
VI_WOO_PHOTO_REVIEWS_Admin_Admin::search_parent_product()
S
50 6 30
villatheme_array_flatten()
S
60 7 13
VillaTheme_Support::form_ads()
S
47 5 43
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::__construct()
S
51 6 25
VI_WOO_PHOTO_REVIEWS_Admin_Admin::preview_emails_button()
S
52 6 24
VillaTheme_Mobile_Detect::setUserAgent()
S
55 6 20
VI_WOO_PHOTO_REVIEWS_DATA::get_params()
S
56 6 19
VillaTheme_Mobile_Detect::checkHttpHeadersForMobile()
S
57 6 17
VillaTheme_Mobile_Detect::isTablet()
S
58 6 15
VillaTheme_Support::__construct()
S
50 5 26
VillaTheme_Support::add_toolbar()
S
52 5 25
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::notify_coupon_sent()
S
56 5 18
VI_WOO_PHOTO_REVIEWS_DATA::get_default()
S
58 5 17
VI_WOO_PHOTO_REVIEWS_Admin_Admin::delete_attachment()
S
56 5 17
VI_WOO_PHOTO_REVIEWS_Admin_Admin::add_image_size()
S
58 5 15
VI_WOO_PHOTO_REVIEWS_Plugins_Curcy::viwcpr_reminder_before_get_product_html()
S
59 5 14
VillaTheme_Mobile_Detect::setCfHeaders()
S
58 5 14
VI_WOO_PHOTO_REVIEWS_Admin_Admin::save_comment_meta()
S
60 5 13
VillaTheme_Support::widget()
S
55 4 28
VillaTheme_Mobile_Detect::setHttpHeaders()
S
61 5 12
VI_WOO_PHOTO_REVIEWS_Admin_Admin::load_plugin_textdomain()
S
52 4 22
VI_WOO_PHOTO_REVIEWS_Plugins_Curcy::viwcpr_reminder_after_get_product_html()
S
63 5 10
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::wc_reviews()
S
60 4 14
VillaTheme_Mobile_Detect::matchUAAgainstKey()
S
61 4 13
VillaTheme_Mobile_Detect::getHttpHeader()
S
60 4 13
VI_WOO_PHOTO_REVIEWS_Plugins_Curcy::get_settings()
S
62 4 12
VI_WOO_PHOTO_REVIEWS_Admin_Admin::preview_emails_html()
S
62 4 12
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::quick_view()
S
62 4 12
VI_WOO_PHOTO_REVIEWS_Admin_Admin::reduce_image_sizes_for_media_upload()
S
62 4 11
VillaTheme_Mobile_Detect::matchDetectionRulesAgainstUA()
S
63 4 11
VI_WOO_PHOTO_REVIEWS_Admin_Admin::delete_reviews_image()
S
62 4 11
VillaTheme_Support::admin_init()
S
61 4 11
VillaTheme_Support::admin_menu()
S
56 3 22
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::create_code()
S
56 3 19
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::photo_reviews()
S
57 3 17
VillaTheme_Support::get_uninstall_reasons()
S
46 1 47
VillaTheme_Mobile_Detect::setDetectionType()
S
66 4 9
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::add_form_description()
S
66 4 8
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::send_email()
S
56 3 15
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::remove_default_reviews()
S
64 4 10
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::reduce_image_sizes()
S
60 3 14
VillaTheme_Support::plugin_row_meta()
S
59 3 13
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::sort_reviews()
S
61 3 12
VI_WOO_PHOTO_REVIEWS_DATA::extend_post_allowed_html()
S
51 1 32
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::add_form_enctype_start()
S
71 3 6
VillaTheme_Mobile_Detect::is()
S
65 3 10
VI_WOO_PHOTO_REVIEWS_Admin_Admin::reduce_image_sizes()
S
65 3 9
VI_WOO_PHOTO_REVIEWS_Plugins_Curcy::get_enable()
S
64 3 10
VI_WOO_PHOTO_REVIEWS_Plugins_Curcy::__construct()
S
66 3 8
VillaTheme_Mobile_Detect::match()
S
65 3 8
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::add_form_enctype_end()
S
66 3 8
VI_WOO_PHOTO_REVIEWS_Admin_Admin::__construct()
S
50 1 26
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::stars_count()
S
58 1 17
VillaTheme_Mobile_Detect::__call()
S
66 2 8
VillaTheme_Mobile_Detect::getMobileDetectionRulesExtended()
S
69 2 7
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::viwcpr_get_template_basic_html()
S
67 2 8
VillaTheme_Support::get_plugin_name()
S
70 2 5
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::rand()
S
67 2 7
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::viwcpr_get_overall_rating_html()
S
67 2 8
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::viwcpr_get_template_masonry_html()
S
67 2 8
VI_WOO_PHOTO_REVIEWS_Frontend_Single_Page::viwcpr_get_filters_html()
S
67 2 8
VI_WOO_PHOTO_REVIEWS_Admin_Admin::add_columns()
S
67 2 7
VI_WOO_PHOTO_REVIEWS_Plugins_Curcy::set_current_currency()
S
70 2 6
VillaTheme_Support::dashboard()
S
65 2 10
VillaTheme_Mobile_Detect::prepareVersionNo()
S
65 2 8
VillaTheme_Support::link_to_pro()
S
66 2 7
VillaTheme_Mobile_Detect::getMobileDetectionRules()
S
69 2 7
woocommerce_version_check()
S
69 2 7
VI_Woo_Photo_Reviews::notification()
S
67 2 9
VillaTheme_Mobile_Detect::getRules()
S
70 2 7
VI_WOO_PHOTO_REVIEWS_Admin_Admin::add_menu()
S
60 1 14
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::add_comment_field()
S
60 1 14
VillaTheme_Support::hide_toolbar_button()
S
61 1 13
VillaTheme_Mobile_Detect::getScriptVersion()
S
80 1 3
VillaTheme_Mobile_Detect::getHttpHeaders()
S
82 1 3
VillaTheme_Mobile_Detect::getOperatingSystems()
S
80 1 3
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::fix_get_comment_link()
S
78 1 3
VillaTheme_Mobile_Detect::getPhoneDevices()
S
80 1 3
VillaTheme_Mobile_Detect::getMatchingRegex()
S
82 1 3
VI_Woo_Photo_Reviews::settings_link()
S
72 1 5
VillaTheme_Mobile_Detect::getUtilities()
S
80 1 3
VI_WOO_PHOTO_REVIEWS_Admin_Admin::wcpr_add_meta_box()
S
67 1 8
VillaTheme_Mobile_Detect::getProperties()
S
80 1 3
VI_WOO_PHOTO_REVIEWS_DATA::get_datetime_format()
S
79 1 3
VI_WOO_PHOTO_REVIEWS_DATA::get_time_format()
S
80 1 3
VI_WOO_PHOTO_REVIEWS_DATA::get_date_format()
S
80 1 3
VillaTheme_Mobile_Detect::__construct()
S
77 1 4
VillaTheme_Mobile_Detect::getMatchesArray()
S
82 1 3
VillaTheme_Mobile_Detect::getBrowsers()
S
80 1 3
VillaTheme_Mobile_Detect::getUaHttpHeaders()
S
81 1 3
VI_WOO_PHOTO_REVIEWS_Frontend_Frontend::add_image_upload_nonce()
S
80 1 3
VI_WOO_PHOTO_REVIEWS_Admin_Admin::load_photos_in_comment_list()
S
74 1 4
VillaTheme_Support::scripts()
S
77 1 3
VillaTheme_Mobile_Detect::getUserAgent()
S
82 1 3
VillaTheme_Mobile_Detect::getCfHeaders()
S
82 1 3
VI_WOO_PHOTO_REVIEWS_Admin_Admin::product_reviews_table_column_callback_wcpr_photos()
S
80 1 3
VillaTheme_Mobile_Detect::getUserAgents()
S
80 1 3
VillaTheme_Mobile_Detect::getMobileHeaders()
S
81 1 3
VI_Woo_Photo_Reviews::__construct()
S
67 1 9
VillaTheme_Mobile_Detect::getTabletDevices()
S
80 1 3