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
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.89ms] Passed 4 tests
Analyzing server-side resources used by Push Monkey Light - Web Push Notifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.58 ▼1.58 |
Dashboard /wp-admin | 3.43 ▲0.12 | 46.98 ▼0.09 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.23 ▼0.81 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 80.83 ▼13.07 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.56 ▲4.26 |
Server storage [IO: ▲2.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 134 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Push Monkey Light - Web Push Notifications: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲132 | 14.39 ▼0.21 | 1.83 ▲0.06 | 38.55 ▼6.93 |
Dashboard /wp-admin | 2,288 ▲114 | 5.59 ▲0.03 | 94.50 ▲8.34 | 38.94 ▼4.39 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 2.02 ▲0.07 | 41.43 ▲0.68 | 34.94 ▼5.43 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.35 ▲0.26 | 698.92 ▲25.18 | 35.98 ▼25.12 |
Media Library /wp-admin/upload.php | 1,496 ▲96 | 4.08 ▼0.16 | 98.82 ▼9.17 | 41.32 ▲0.01 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/push-monkey-light/templates/pages/service_worker.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/push-monkey-light/templates/pages/settings/main.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/push-monkey-light/templates/pages/settings/log-in.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
push-monkey-light/push-monkey-light.php 92% from 13 tests
The main PHP file in "Push Monkey Light - Web Push Notifications" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 346 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin21,828 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 622 | 294 | 19,628 |
SVG | 5 | 0 | 0 | 944 |
PHP | 10 | 224 | 277 | 685 |
Markdown | 2 | 128 | 0 | 557 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 1 | 2.44% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
77 PNG files occupy 0.58MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/jquery/ui-bg_glass_100_f6f6f6_1x400.png | 0.33KB | 0.17KB | ▼ 46.73% |
img/plugin-big-message-image.png | 21.55KB | 8.51KB | ▼ 60.48% |
img/icons/json.png | 5.88KB | 2.00KB | ▼ 66.03% |
img/jquery/ui-icons_228ef1_256x240.png | 4.54KB | 4.23KB | ▼ 6.96% |
img/jquery/ui-icons_222222_256x240.png | 6.73KB | 4.23KB | ▼ 37.20% |