Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/sp-reviews/superpages-reviews.php+225
Function create_function() is deprecated
Server metrics [RAM: ▼1.57MB] [CPU: ▼187.72ms] Passed 4 tests
An overview of server-side resources used by SP Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼0.66 | 5.78 ▼23.34 |
Dashboard /wp-admin | 2.07 ▼0.98 | 6.75 ▼33.81 |
Posts /wp-admin/edit.php | 2.08 ▼1.03 | 5.73 ▼42.67 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.36 | 6.04 ▼651.05 |
Media Library /wp-admin/upload.php | 2.08 ▼0.93 | 10.92 ▼18.62 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_spr_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SP Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,722 ▲150 | 15.92 ▲0.12 | 7.51 ▼2.89 | 51.96 ▼9.61 |
Dashboard /wp-admin | 2,979 ▲48 | 5.91 ▼0.02 | 133.40 ▼14.77 | 147.71 ▲26.62 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.57 ▼0.12 | 66.24 ▼4.66 | 91.38 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,696 ▲90 | 18.53 ▼0.30 | 424.56 ▲50.65 | 132.41 ▲20.68 |
Media Library /wp-admin/upload.php | 1,841 ▲31 | 5.01 ▼0.04 | 162.39 ▲10.49 | 158.13 ▲37.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/sp-reviews/superpages-reviews.php+225
Function create_function() is deprecated
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== sp-reviews ===
) - Screenshots: Please add images for these screenshots: #1 (Overall rating widget.), #2 (Customer reviews from Superpages.com.)
sp-reviews/superpages-reviews.php 85% from 13 tests
This is the main PHP file of "SP Reviews" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("sp-reviews.php" instead of "superpages-reviews.php")
- Description: Keep the plugin description shorter than 140 characters (currently 243 characters long)
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
No dangerous file extensions were detected1,012 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 134 | 66 | 724 |
PO File | 1 | 114 | 118 | 284 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
18 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/0_star.png | 1.21KB | 0.40KB | ▼ 66.85% |
images/tab_icons2.png | 3.34KB | 1.93KB | ▼ 42.18% |
images/1_star.png | 1.22KB | 0.67KB | ▼ 45.15% |
images/1.5_star.png | 1.34KB | 0.70KB | ▼ 47.71% |
images/superpages-color.png | 1.92KB | 0.74KB | ▼ 61.23% |