Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▼0.71ms] Passed 4 tests
Analyzing server-side resources used by Mango Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.28 | 40.68 ▼0.60 |
Dashboard /wp-admin | 3.66 ▲0.36 | 48.74 ▲4.21 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 46.69 ▼1.42 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 86.77 ▼3.46 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 40.73 ▲2.64 |
Popups /wp-admin/admin.php?page=mango_popup | 3.57 | 40.40 |
Settings /wp-admin/admin.php?page=mango_popup_settings | 3.49 | 37.80 |
Create Popup /wp-admin/admin.php?page=mango_popup_create | 3.53 | 38.52 |
Server storage [IO: ▲7.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 426 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Mango Popup
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲233 | 13.70 ▼0.68 | 7.24 ▲5.50 | 40.69 ▼1.81 |
Dashboard /wp-admin | 2,239 ▲50 | 5.81 ▲0.93 | 103.49 ▼13.58 | 53.23 ▲13.61 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.03 ▲0.06 | 33.13 ▼12.59 | 39.69 ▲4.33 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 23.13 ▼0.10 | 673.83 ▲7.85 | 69.18 ▲16.22 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.21 ▼0.15 | 93.88 ▼19.60 | 51.82 ▲4.43 |
Popups /wp-admin/admin.php?page=mango_popup | 1,419 | 3.92 | 57.26 | 48.40 |
Settings /wp-admin/admin.php?page=mango_popup_settings | 904 | 2.06 | 24.17 | 49.22 |
Create Popup /wp-admin/admin.php?page=mango_popup_create | 1,132 | 3.87 | 47.16 | 101.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mango-popup/includes/views/template.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #7 is required in mango-popup/assets to your readme.txt
mango-popup/mango-popup.php 85% from 13 tests
The main file in "Mango Popup" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 254 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin41,987 lines of code in 328 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 4,168 | 19,231 | 16,369 |
CSS | 107 | 1,072 | 129 | 7,708 |
Sass | 88 | 1,249 | 1,592 | 7,350 |
PHP | 34 | 884 | 2,107 | 3,995 |
SVG | 2 | 0 | 0 | 2,959 |
LESS | 14 | 34 | 44 | 1,758 |
JSON | 37 | 14 | 0 | 854 |
Markdown | 7 | 332 | 0 | 697 |
HTML | 14 | 22 | 2 | 297 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 189 | |
▷ Static methods | 32 | 16.93% |
▷ Public methods | 159 | 84.13% |
▷ Protected methods | 4 | 2.12% |
▷ Private methods | 26 | 13.76% |
Functions | 10 | |
▷ Named functions | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.00% |
Constants | 31 | |
▷ Global constants | 21 | 67.74% |
▷ Class constants | 10 | 32.26% |
▷ Public constants | 10 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.93MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
template/template-pro-4/assets/img/0.png | 2.36KB | 1.67KB | ▼ 29.14% |
template/template-pro-6/assets/img/cat.png | 69.10KB | 74.37KB | 0.00% |
template/template-pro-2/assets/img/0.png | 132.12KB | 34.43KB | ▼ 73.94% |
assets/admin/img/position/slide_in_right_hover.png | 2.96KB | 1.30KB | ▼ 56.16% |
template/template-pro-1/assets/img/clock.png | 58.03KB | 16.15KB | ▼ 72.17% |