Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.43ms] Passed 4 tests
This is a short check of server-side resources used by Comment Star Rating
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 47.62 ▲3.19 |
Dashboard /wp-admin | 3.40 ▲0.05 | 49.49 ▼15.14 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.78 ▼4.40 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.99 ▼13.38 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.44 ▲3.57 |
Comment Star Rating /wp-admin/options-general.php?page=comment-star-rating | 3.29 | 36.37 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Comment Star Rating
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲197 | 14.13 ▼0.12 | 15.29 ▲13.44 | 38.76 ▼4.31 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▼0.05 | 92.47 ▲0.86 | 40.77 ▼2.50 |
Posts /wp-admin/edit.php | 2,104 ▲3 | 1.97 ▲0.00 | 36.97 ▼0.29 | 35.06 ▲2.56 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 22.91 ▲4.68 | 643.72 ▼0.38 | 52.89 ▼7.69 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.03 | 98.68 ▼5.39 | 46.46 ▼3.49 |
Comment Star Rating /wp-admin/options-general.php?page=comment-star-rating | 856 | 1.96 | 25.64 | 55.09 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'CSR_Controller' not found in wp-content/plugins/comment-star-rating/classes/controllers/class.shortcode.php:3
- > PHP Fatal error
Uncaught Error: Class 'CSR_Model' not found in wp-content/plugins/comment-star-rating/classes/models/class.comment.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/comment-star-rating/templates/shortcode/settings.php:1
- > PHP Fatal error
Uncaught Error: Class 'CSR_Model' not found in wp-content/plugins/comment-star-rating/classes/models/class.post.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-star-rating/comment-star-rating.php:23
- > PHP Fatal error
Uncaught Error: Class 'CSR_Controller' not found in wp-content/plugins/comment-star-rating/classes/controllers/class.comment.php:3
- > PHP Fatal error
Uncaught Error: Class 'CSR_Controller' not found in wp-content/plugins/comment-star-rating/classes/controllers/class.main.php:3
- > PHP Fatal error
Uncaught Error: Class 'CSR_Model' not found in wp-content/plugins/comment-star-rating/classes/models/class.option.php:3
- > PHP Fatal error
Uncaught Error: Class 'CSR_Controller' not found in wp-content/plugins/comment-star-rating/classes/controllers/class.admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/comment-star-rating/templates/admin/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (setting), #2 (comment form), #3 (total rating)
comment-star-rating/comment-star-rating.php Passed 13 tests
"Comment Star Rating" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
WordPress plugin to rate comments on 5 beautiful stars.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,352 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 120 | 292 | 649 |
JavaScript | 2 | 175 | 12 | 581 |
CSS | 2 | 18 | 9 | 122 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 9 | 16.67% |
▷ Public methods | 52 | 96.30% |
▷ Protected methods | 2 | 3.70% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/fivestar01.png | 4.93KB | 3.03KB | ▼ 38.54% |
css/images/star-off.png | 0.67KB | 0.61KB | ▼ 9.05% |
screenshot-3.png | 35.76KB | 9.30KB | ▼ 73.98% |
screenshot-2.png | 18.48KB | 3.53KB | ▼ 80.88% |
css/images/cancel-off.png | 0.68KB | 0.61KB | ▼ 11.30% |