Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.83ms] Passed 4 tests
An overview of server-side resources used by Review Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.72 ▼9.18 |
Dashboard /wp-admin | 3.42 ▲0.12 | 43.81 ▼5.06 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.03 ▲1.13 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 80.11 ▼6.20 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.34 ▲1.59 |
Server storage [IO: ▲2.88MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 89 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mryrm_reviews |
wp_mryrm_setting |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Review Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.25 ▼1.10 | 4.36 ▲2.40 | 43.17 ▼2.10 |
Dashboard /wp-admin | 2,224 ▲36 | 5.83 ▲0.93 | 100.88 ▼8.89 | 81.07 ▲37.40 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.01 ▲0.01 | 40.77 ▲0.73 | 33.84 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.09 ▼0.21 | 728.77 ▲88.97 | 58.68 ▼1.61 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.18 ▼0.01 | 98.50 ▼10.84 | 79.81 ▲33.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/review-manager/deactivate.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/review-manager/deactivate.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Review Manager Key Setting)
review-manager/review-manager.php 92% from 13 tests
The main file in "Review Manager" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 279 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,546 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 509 | 971 | 2,146 |
PHP | 5 | 193 | 58 | 773 |
CSS | 3 | 26 | 23 | 612 |
SVG | 1 | 0 | 1 | 14 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
68 PNG files occupy 1.83MB with 1.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon/facebook.png | 1.78KB | 1.64KB | ▼ 8.27% |
assets/images/icon/health_grades.png | 1.42KB | 0.48KB | ▼ 65.91% |
assets/images/arrow.png | 1.13KB | 0.42KB | ▼ 63.21% |
assets/images/icon/zomato.png | 3.40KB | 0.64KB | ▼ 81.14% |
assets/images/star-1.png | 2.67KB | 1.05KB | ▼ 60.63% |