Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▲2.29ms] Passed 4 tests
Server-side resources used by Youtube Like Rating
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 51.85 ▲10.12 |
Dashboard /wp-admin | 3.33 ▲0.03 | 60.88 ▲7.96 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 58.16 ▲9.34 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 78.33 ▼18.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 48.45 ▲10.26 |
YoutubeLikeRating /wp-admin/options-general.php?page=YoutubeLikeRating | 3.22 | 44.94 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_post_votes |
wp_comment_vote_totals |
wp_comment_votes |
wp_post_vote_totals |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Youtube Like Rating
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,072 ▲326 | 13.56 ▼1.10 | 10.00 ▲8.23 | 48.62 ▲3.08 |
Dashboard /wp-admin | 2,257 ▲69 | 4.88 ▼1.03 | 102.17 ▼13.67 | 43.63 ▲3.28 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.02 ▼0.03 | 37.73 ▲0.73 | 43.27 ▲8.45 |
Add New Post /wp-admin/post-new.php | 1,615 ▲86 | 23.27 ▲4.93 | 499.20 ▼140.30 | 173.26 ▲117.85 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.25 ▲0.04 | 99.52 ▲0.57 | 46.68 ▲2.37 |
YoutubeLikeRating /wp-admin/options-general.php?page=YoutubeLikeRating | 864 | 1.71 | 27.04 | 32.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_comment_votes
- wp_post_votes
- wp_comment_vote_totals
- wp_post_vote_totals
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-like-rating/YoutubeLikeRating.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/youtube-like-rating/rating_ajax.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=YoutubeLikeRating
- > 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: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/youtube-like-rating/js/YoutubeLikeRating.js?ver=1.0:106:27)\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/options-general.php?page=YoutubeLikeRating
- > 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: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
youtube-like-rating/YoutubeLikeRating.php 92% from 13 tests
Analyzing the main PHP file in "Youtube Like Rating" version 1.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("youtube-like-rating.php" instead of "YoutubeLikeRating.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin780 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 124 | 38 | 477 |
CSS | 2 | 19 | 4 | 193 |
JavaScript | 2 | 28 | 21 | 110 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/old-thumb-down-on.png | 3.20KB | 0.56KB | ▼ 82.55% |
screenshot-2.PNG | 9.11KB | 4.65KB | ▼ 49.01% |
screenshot-1.PNG | 9.68KB | 4.62KB | ▼ 52.29% |
images/thumb-down.png | 3.19KB | 0.55KB | ▼ 82.83% |
images/up.png | 2.91KB | 0.30KB | ▼ 89.57% |