Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.34MB] [CPU: ▼46.51ms] Passed 4 tests
Server-side resources used by Mage Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.62 ▼0.84 | 10.65 ▼30.46 |
Dashboard /wp-admin | 2.67 ▼0.63 | 15.02 ▼36.55 |
Posts /wp-admin/edit.php | 2.67 ▼0.68 | 13.95 ▼34.98 |
Add New Post /wp-admin/post-new.php | 2.67 ▼3.22 | 12.88 ▼84.04 |
Media Library /wp-admin/upload.php | 2.67 ▼0.55 | 15.30 ▼21.91 |
Reviews /wp-admin/admin.php?page=mage_reviews | 2.67 | 14.22 |
Dashboard /wp-admin/admin.php?page=mage_cast | 2.67 | 14.71 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 9 new options
New WordPress options |
---|
mage_reviews_activation |
widget_mage-recent-reviews |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
mage_reviews |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Mage Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲74 | 14.45 ▲0.03 | 3.25 ▲1.13 | 45.76 ▼1.54 |
Dashboard /wp-admin | 2,222 ▲34 | 5.86 ▼0.05 | 98.72 ▼15.74 | 89.61 ▲43.45 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 1.98 ▼0.01 | 38.64 ▼4.02 | 37.86 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 18.35 ▼5.14 | 742.58 ▲71.69 | 69.02 ▲16.53 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.13 ▼0.04 | 99.62 ▲2.69 | 82.87 ▲36.61 |
Reviews /wp-admin/admin.php?page=mage_reviews | 1,636 | 2.24 | 38.61 | 135.98 |
Dashboard /wp-admin/admin.php?page=mage_cast | 889 | 2.36 | 25.40 | 58.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/mage-reviews/cast/craft.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; Mage_Recent_Reviews has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 9 options
- mage_reviews_activation
- db_upgraded
- theysaidso_admin_options
- mage_reviews
- widget_theysaidso_widget
- widget_mage-recent-reviews
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mage_cast
- > Deprecated in wp-content/plugins/mage-reviews/cast/craft.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; Mage_Recent_Reviews has a deprecated constructor
- 51 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mage_cast
- > Warning in wp-content/plugins/mage-reviews/core/mage-cast.php+198
preg_replace(): Compilation failed: invalid range in character class at offset 13
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mage-reviews/cast/craft.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mage-reviews/core/mage-cast.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=mage_reviews
- > Network (severe)
wp-content/plugins/mage-reviews/core/images/arrow-down.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
mage-reviews/mage-reviews.php Passed 13 tests
The main PHP file in "Mage Reviews" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
125 characters long description:
A simple customizable rating option will be integrated within the comment form and display rating average and author ratings.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin11,504 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 1,071 | 83 | 7,783 |
PHP | 7 | 60 | 149 | 1,685 |
SVG | 3 | 0 | 1 | 1,409 |
PO File | 2 | 156 | 156 | 497 |
JavaScript | 5 | 15 | 28 | 130 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 81 | |
▷ Named functions | 81 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 0.20MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
source/img/music-0.png | 0.27KB | 0.23KB | ▼ 13.97% |
core/plugins/mage_google_maps.png | 18.84KB | 8.51KB | ▼ 54.83% |
source/img/trophy-1.png | 0.44KB | 0.30KB | ▼ 31.92% |
source/img/bulb-0.png | 0.66KB | 0.45KB | ▼ 31.56% |
source/img/snowflake-0.png | 0.65KB | 0.31KB | ▼ 52.77% |