Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼135.70ms] Passed 4 tests
Server-side resources used by Cosmick Star Rating
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 37.74 ▼4.48 |
Dashboard /wp-admin | 3.18 ▲0.12 | 53.10 ▼2.59 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 69.73 ▲18.64 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.10 | 118.50 ▼539.23 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 40.75 ▲3.50 |
Reviews /wp-admin/edit.php?post_type=reviews | 3.17 | 43.31 |
Cosmick Star Rating /wp-admin/options-general.php?page=cosmick_star_rating | 3.09 | 35.91 |
Add New /wp-admin/post-new.php?post_type=reviews | 3.18 | 48.29 |
Server storage [IO: ▲0.07MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_csr_votes |
New WordPress options |
---|
widget_csr_reviews_widget |
Browser metrics Passed 4 tests
Cosmick Star Rating: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,876 ▲304 | 16.91 ▲1.54 | 20.96 ▲12.10 | 50.53 ▼5.74 |
Dashboard /wp-admin | 3,022 ▲91 | 6.07 ▲0.03 | 172.35 ▲5.92 | 116.17 ▲3.09 |
Posts /wp-admin/edit.php | 2,791 ▲52 | 2.79 ▲0.09 | 96.15 ▲14.34 | 105.09 ▲14.88 |
Add New Post /wp-admin/post-new.php | 1,719 ▲36 | 18.49 ▼0.26 | 403.82 ▼69.41 | 115.20 ▼1.37 |
Media Library /wp-admin/upload.php | 1,859 ▲52 | 5.20 ▲0.17 | 178.52 ▲8.14 | 121.94 ▲4.04 |
Reviews /wp-admin/edit.php?post_type=reviews | 1,470 | 2.85 | 73.81 | 75.10 |
Cosmick Star Rating /wp-admin/options-general.php?page=cosmick_star_rating | 1,237 | 2.39 | 70.10 | 79.14 |
Add New /wp-admin/post-new.php?post_type=reviews | 3,112 | 9.35 | 278.89 | 141.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_csr_votes
- The uninstall procedure has failed, leaving 1 option in the database
- widget_csr_reviews_widget
Smoke tests 50% 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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=reviews
- > Notice in wp-content/plugins/cosmick-star-rating/star-rating-post.php+57
Trying to get property 'overall_rating' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cosmick-star-rating/star-rating-widget.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/cosmick-star-rating/star-rating.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cosmick-star-rating/star-rating-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cosmick-star-rating/star-rating-post.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cosmick-star-rating/star-rating.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: post rating, admin, 5 star, google star rating, five-star
cosmick-star-rating/star-rating.php 92% from 13 tests
"Cosmick Star Rating" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("cosmick-star-rating.php" instead of "star-rating.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected877 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 74 | 23 | 439 |
JavaScript | 3 | 51 | 26 | 423 |
CSS | 1 | 0 | 1 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin