Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.29ms] Passed 4 tests
This is a short check of server-side resources used by Comment Rating Stars
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.21 ▼2.94 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.57 ▼7.41 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.08 ▼2.26 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.72 ▼24.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.97 ▼0.18 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Comment Rating Stars
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.66 ▼0.65 | 6.13 ▲4.50 | 44.71 ▲1.98 |
Dashboard /wp-admin | 2,230 ▲27 | 4.94 ▼0.09 | 103.24 ▼5.70 | 42.87 ▼1.54 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.06 ▲0.05 | 37.43 ▼5.44 | 35.38 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,532 ▲124 | 17.65 ▼0.15 | 664.41 ▲36.40 | 59.16 ▲12.66 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.24 ▲0.00 | 98.07 ▼10.82 | 41.96 ▼9.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-rating-stars/comment-star-reviews.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (An example review form), #2 (An example review), #3 (An example total ratings section)
comment-rating-stars/comment-star-reviews.php 85% from 13 tests
"Comment Rating Stars" version 1.0.0-RC1...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("comment-rating-stars.php" instead of "comment-star-reviews.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.0.0-RC1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin307 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 64 | 30 | 193 |
CSS | 1 | 14 | 2 | 82 |
Bourne Shell | 1 | 13 | 9 | 29 |
JavaScript | 2 | 0 | 1 | 3 |
PHP code Passed 2 tests
Analyzing 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 | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 21 | |
▷ Static methods | 21 | 100.00% |
▷ Public methods | 16 | 76.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 23.81% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
3 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 7.56KB | 2.33KB | ▼ 69.23% |
assets/screenshot-2.png | 18.78KB | 5.33KB | ▼ 71.61% |
assets/screenshot-1.png | 25.22KB | 6.55KB | ▼ 74.03% |