Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.97MB] [CPU: ▼347.28ms] Passed 4 tests
This is a short check of server-side resources used by Mage Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.14 | 7.40 ▼45.11 |
Dashboard /wp-admin | 2.42 ▼0.98 | 8.31 ▼25.28 |
Posts /wp-admin/edit.php | 2.43 ▼1.21 | 8.29 ▼29.47 |
Add New Post /wp-admin/post-new.php | 2.42 ▼4.55 | 9.04 ▼1,289.27 |
Media Library /wp-admin/upload.php | 2.43 ▼0.87 | 7.96 ▼21.58 |
Reviews /wp-admin/admin.php?page=mage_reviews | 2.42 | 8.53 |
Dashboard /wp-admin/admin.php?page=mage_cast | 2.42 | 9.88 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 2 new options
New WordPress options |
---|
mage_reviews_activation |
mage_reviews |
Browser metrics Passed 4 tests
An overview of browser requirements for Mage Reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲62 | 15.98 ▲0.32 | 7.79 ▲0.09 | 2.25 ▼0.18 |
Dashboard /wp-admin | 2,920 ▲69 | 6.04 ▼0.19 | 124.13 ▼12.90 | 178.04 ▲13.89 |
Posts /wp-admin/edit.php | 2,718 ▲27 | 3.06 ▼0.17 | 63.50 ▼0.53 | 139.14 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,727 ▲66 | 21.23 ▲4.85 | 415.69 ▲5.17 | 208.27 ▲52.21 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.67 ▲0.18 | 125.28 ▼21.97 | 208.18 ▲16.34 |
Reviews /wp-admin/admin.php?page=mage_reviews | 2,074 | 3.39 | 62.51 | 225.32 |
Dashboard /wp-admin/admin.php?page=mage_cast | 1,112 | 3.05 | 59.07 | 103.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > 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 were found after uninstall: 2 options
- mage_reviews_activation
- mage_reviews
Smoke tests 25% 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
- 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > 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
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mage-reviews/cast/craft.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (26 tag instead of maximum 10)
mage-reviews/mage-reviews.php Passed 13 tests
"Mage Reviews" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected11,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
Everything seems fine, there were 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
All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
source/img/star-0.png | 0.42KB | 0.24KB | ▼ 42.42% |
source/img/dog-0.png | 0.53KB | 0.30KB | ▼ 43.70% |
source/img/leaf-0.png | 0.36KB | 0.26KB | ▼ 27.52% |
core/plugins/mage_google_maps.png | 18.84KB | 8.51KB | ▼ 54.83% |
source/img/trophy-1.png | 0.44KB | 0.30KB | ▼ 31.92% |