Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.71MB] [CPU: ▼56.96ms] Passed 4 tests
Server-side resources used by Star Ratings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 5.86 ▼34.51 |
Dashboard /wp-admin | 2.29 ▼1.01 | 7.47 ▼41.48 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 9.12 ▼49.68 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 6.84 ▼102.16 |
Media Library /wp-admin/upload.php | 2.29 ▼0.93 | 6.24 ▼29.37 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Star Ratings
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲196 | 15.11 ▲0.57 | 1.84 ▲0.30 | 25.25 ▼22.96 |
Dashboard /wp-admin | 2,362 ▲185 | 6.48 ▲0.87 | 128.05 ▲35.83 | 49.96 ▲8.26 |
Posts /wp-admin/edit.php | 2,287 ▲184 | 3.65 ▲1.64 | 50.46 ▲8.72 | 41.78 ▲6.23 |
Add New Post /wp-admin/post-new.php | 1,704 ▲173 | 22.46 ▼0.77 | 584.51 ▼42.98 | 38.37 ▼27.02 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.31 ▲0.12 | 87.77 ▼19.03 | 51.36 ▲4.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prefix_bootstrap handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in starrating-feedback-automatic/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
starrating-feedback-automatic/starreviews.php 69% from 13 tests
The main file in "Star Ratings" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("starrating-feedback-automatic.php" instead of "starreviews.php")
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin933 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 216 | 404 | 876 |
Markdown | 1 | 33 | 0 | 54 |
JavaScript | 2 | 0 | 10 | 2 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 1.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
Constants | 1 | |
▷ Global constants | 1 | 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
9 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/3star.png | 5.07KB | 0.58KB | ▼ 88.51% |
includes/images/5starsample.png | 1.80KB | 1.69KB | ▼ 5.87% |
includes/images/4star.png | 5.03KB | 0.57KB | ▼ 88.76% |
includes/images/nostar.png | 7.77KB | 1.15KB | ▼ 85.20% |
includes/images/fb.png | 28.46KB | 12.98KB | ▼ 54.41% |