Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.83MB] [CPU: ▲2.59ms] Passed 4 tests
Server-side resources used by Ultimate Editorial Rating - Rating & Review plugin for Customers and Editor with Pros and Cons (WooCommerce Support)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.83 | 54.61 ▲9.37 |
Dashboard /wp-admin | 4.12 ▲0.81 | 55.86 ▲3.17 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 68.03 ▲16.55 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.88 | 97.51 ▼11.75 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 50.86 ▲9.55 |
+ Add Review /wp-admin/post-new.php?post_type=wpas_review | 4.18 | 58.85 |
Support /wp-admin/edit.php?post_type=wpas_review&page=wpas_help | 4.10 | 51.39 |
Settings /wp-admin/edit.php?post_type=wpas_review&page=wpas-settings | 4.09 | 62.11 |
All Reviews /wp-admin/edit.php?post_type=wpas_review | 4.16 | 46.39 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 76 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_wpas_editorial_rating_widget |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
_wpas_admin_options |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Editorial Rating - Rating & Review plugin for Customers and Editor with Pros and Cons (WooCommerce Support)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.39 ▲0.04 | 1.68 ▼0.02 | 38.99 ▼2.30 |
Dashboard /wp-admin | 2,251 ▲80 | 5.63 ▲0.06 | 94.32 ▼1.58 | 42.82 ▲0.91 |
Posts /wp-admin/edit.php | 2,533 ▲433 | 5.44 ▲3.42 | 97.44 ▲58.95 | 36.02 ▼0.22 |
Add New Post /wp-admin/post-new.php | 2,156 ▲630 | 26.08 ▲2.84 | 800.30 ▲58.93 | 47.46 ▼10.95 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.18 ▼0.02 | 86.61 ▼27.75 | 40.92 ▼6.70 |
+ Add Review /wp-admin/post-new.php?post_type=wpas_review | 2,285 | 6.14 | 130.26 | 142.66 |
Support /wp-admin/edit.php?post_type=wpas_review&page=wpas_help | 2,100 | 11.45 | 329.70 | 162.19 |
Settings /wp-admin/edit.php?post_type=wpas_review&page=wpas-settings | 1,349 | 5.47 | 72.06 | 39.46 |
All Reviews /wp-admin/edit.php?post_type=wpas_review | 1,497 | 5.38 | 64.20 | 27.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_wpas_editorial_rating_widget
- _wpas_admin_options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/editorial-rating/admin/wpas-help-admin-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/editorial-rating/admin/wpas-help-admin-display.php:201
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
editorial-rating/wpas_editorial_rating.php 85% from 13 tests
The entry point to "Ultimate Editorial Rating - Rating & Review plugin for Customers and Editor with Pros and Cons (WooCommerce Support)" version 3.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("editorial-rating.php" instead of "wpas_editorial_rating.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin15,507 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,318 | 533 | 6,613 |
CSS | 8 | 384 | 528 | 5,256 |
PHP | 38 | 1,255 | 1,128 | 3,619 |
SVG | 4 | 0 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 27.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 31 | 23.48% |
▷ Public methods | 127 | 96.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.79% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/wpas-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
admin/img/product-image.png | 39.34KB | 19.62KB | ▼ 50.12% |