Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲2.51MB] [CPU: ▼102.35ms] Passed 4 tests
Server-side resources used by Like Button Rating ♥ LikeBtn
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.94 ▲2.47 | 63.75 ▲29.03 |
Dashboard /wp-admin | 5.87 ▲2.44 | 56.42 ▼456.49 |
Posts /wp-admin/edit.php | 5.99 ▲2.63 | 57.22 ▲7.38 |
Add New Post /wp-admin/post-new.php | 8.47 ▲2.57 | 110.73 ▲18.94 |
Media Library /wp-admin/upload.php | 5.79 ▲2.56 | 57.86 ▲20.76 |
Reports /wp-admin/admin.php?page=likebtn_reports | 5.76 | 43.17 |
Settings /wp-admin/admin.php?page=likebtn_settings | 6.22 | 288.74 |
Votes /wp-admin/admin.php?page=likebtn_votes | 5.85 | 44.49 |
Help /wp-admin/admin.php?page=likebtn_help | 5.76 | 41.96 |
Widgets /wp-admin/admin.php?page=likebtn_widget | 5.76 | 62.56 |
Statistics /wp-admin/admin.php?page=likebtn_statistics | 5.85 | 44.94 |
Buttons /wp-admin/admin.php?page=likebtn_buttons | 5.84 | 55.13 |
Server storage [IO: ▲1.96MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 156 new files
Database: 2 new tables, 917 new options
New tables |
---|
wp_likebtn_vote |
wp_likebtn_item |
New WordPress options |
---|
likebtn_settings_group_identifier_page_likebtn_list |
likebtn_settings_item_date_attachment |
likebtn_settings_loader_image_page_likebtn_list |
likebtn_notify_enabled |
likebtn_settings_counter_padding_post |
likebtn_settings_btn_size_page |
likebtn_voting_author_post |
likebtn_bp_hide_sitewide_post_likebtn_list |
likebtn_settings_lang_attachment |
likebtn_allow_forums_comment |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Like Button Rating ♥ LikeBtn
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲138 | 13.66 ▼0.91 | 16.74 ▲14.81 | 46.36 ▲7.58 |
Dashboard /wp-admin | 2,258 ▲78 | 5.72 ▲0.08 | 89.57 ▲4.93 | 85.99 ▲47.67 |
Posts /wp-admin/edit.php | 2,250 ▲147 | 2.13 ▲0.11 | 35.50 ▼4.32 | 32.94 ▼4.84 |
Add New Post /wp-admin/post-new.php | 1,577 ▲38 | 23.55 ▲5.61 | 600.86 ▼21.99 | 56.45 ▼8.70 |
Media Library /wp-admin/upload.php | 1,463 ▲60 | 4.18 ▼0.04 | 96.93 ▼3.78 | 80.40 ▲33.91 |
Reports /wp-admin/admin.php?page=likebtn_reports | 1,108 | 3.27 | 75.18 | 47.01 |
Settings /wp-admin/admin.php?page=likebtn_settings | 1,893 | 2.30 | 39.65 | 67.11 |
Votes /wp-admin/admin.php?page=likebtn_votes | 2,748 | 2.56 | 33.32 | 29.45 |
Help /wp-admin/admin.php?page=likebtn_help | 1,515 | 10.21 | 245.19 | 60.11 |
Widgets /wp-admin/admin.php?page=likebtn_widget | 965 | 2.32 | 27.37 | 30.72 |
Statistics /wp-admin/admin.php?page=likebtn_statistics | 1,377 | 2.13 | 29.63 | 25.50 |
Buttons /wp-admin/admin.php?page=likebtn_buttons | 9,827 | 6.44 | 247.65 | 128.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_likebtnlikebuttonmostlikedwidget
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_likebtnlikebuttonmostlikedbyuserwidget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=likebtn_votes
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/likebtn-like-button/templates/most-liked-widget.php
- > /wp-content/plugins/likebtn-like-button/templates/um-liked-content.php
- > /wp-content/plugins/likebtn-like-button/templates/like-box.php
- > /wp-content/plugins/likebtn-like-button/templates/liked-by-user-widget.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/likebtn-like-button/includes/buddypress.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function likebtn_strip_html() in wp-content/plugins/likebtn-like-button/templates/admin_mail.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function _likebtn_is_bbp_active() in wp-content/plugins/likebtn-like-button/includes/bbpress.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/likebtn-like-button/includes/meta_columns.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/likebtn-like-button/includes/likebtn_like_button_most_liked_widget.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/likebtn-like-button/includes/um.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/likebtn-like-button/likebtn_like_button.php:177
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=likebtn_settings
- > Network (severe)
wp-content/plugins/likebtn-like-button/public/css/jquery/jquery-ui/jquery-ui.css?ver=2.6.50 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=likebtn_settings
- > Network (severe)
wp-content/plugins/likebtn-like-button/public/js/jquery/jquery-ui/jquery-ui.js?ver=2.6.50 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=likebtn_settings
- > Javascript (severe) in unknown
/wp-content/plugins/likebtn-like-button/public/js/jquery/jquery.ui.durationPicker.js?ver=2.6.50 1:4 Uncaught TypeError: $.widget is not a function
- > GET request to /wp-admin/admin.php?page=likebtn_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: cntr.durationPicker is not a function" "TypeError: cntr.durationPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/likebtn-like-button/public/js/admin.js?ver=2.6.50:2294:14)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=likebtn_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: cntr.durationPicker is not a function
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=likebtn_buttons
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=likebtn_buttons
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=likebtn_buttons
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=likebtn_buttons
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (54 tag instead of maximum 10); only the first 5 tags are used in your directory listing
likebtn-like-button/likebtn_like_button.php 85% from 13 tests
The primary PHP file in "Like Button Rating ♥ LikeBtn" version 2.6.50 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("likebtn-like-button.php" instead of "likebtn_like_button.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected24,505 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 1,795 | 1,173 | 12,675 |
PO File | 4 | 2,482 | 3,229 | 5,686 |
JavaScript | 54 | 487 | 555 | 3,485 |
CSS | 7 | 531 | 68 | 2,659 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 60.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 6.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 1 | 1.49% |
▷ Public methods | 67 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 261 | |
▷ Named functions | 261 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 122 | |
▷ Global constants | 112 | 91.80% |
▷ Class constants | 10 | 8.20% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
51 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/popup_position/top.png | 1.89KB | 0.69KB | ▼ 63.33% |
public/img/jquery/jquery-ui/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
public/img/jquery/jquery-ui/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
public/img/thumb/dislike.png | 1.38KB | 0.54KB | ▼ 60.44% |
public/img/jquery/jquery-ui/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |