Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/responsive-notifications/notify.php+35
Methods with the same name as their class will not be constructors in a future version of PHP; go_notification_styles has a deprecated constructor
Server metrics [RAM: ▼2.36MB] [CPU: ▼367.53ms] Passed 4 tests
This is a short check of server-side resources used by Responsive Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.01 ▼1.51 | 7.78 ▼53.51 |
Dashboard /wp-admin | 2.03 ▼1.38 | 7.33 ▼35.53 |
Posts /wp-admin/edit.php | 2.03 ▼1.62 | 7.07 ▼44.38 |
Add New Post /wp-admin/post-new.php | 2.03 ▼4.95 | 8.07 ▼1,336.69 |
Media Library /wp-admin/upload.php | 2.03 ▼1.27 | 7.82 ▼29.19 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_go_notification_styles |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Responsive Notifications
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,851 ▲97 | 16.03 ▲0.50 | 9.24 ▲0.98 | 3.73 ▲0.61 |
Dashboard /wp-admin | 2,954 ▲35 | 6.42 ▼0.02 | 179.32 ▼21.90 | 199.95 ▼12.72 |
Posts /wp-admin/edit.php | 2,718 ▼0 | 3.42 ▼0.01 | 85.23 ▼7.15 | 178.79 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,613 ▼49 | 22.00 ▲5.08 | 636.19 ▼64.21 | 229.97 ▲32.14 |
Media Library /wp-admin/upload.php | 1,730 ▲1 | 5.70 ▼0.01 | 189.43 ▼13.25 | 258.56 ▲19.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5409
The called constructor method for WP_Widget in go_notification_styles is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 1 option in the database
- widget_go_notification_styles
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/responsive-notifications/notify.php:13
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png - One of the responsive notification types), #2 (screenshot-2.png - One of the responsive notification types), #3 (screenshot-3.png - One of the responsive notification types), #4 (screenshot-4.png - One of the responsive notification types), #5 (screenshot-5.png - One of the responsive notification types), #6 (screenshot-6.png - One of the responsive notification types), #7 (screenshot-7.png - One of the responsive notification types), #8 (screenshot-8.png - One of the responsive notification types), #9 (screenshot-9.png - One of the responsive notification types), #10 (screenshot-10.png - One of the responsive notification types), #11 (screenshot-11.png - One of the responsive notification types)
responsive-notifications/notify.php 85% from 13 tests
Analyzing the main PHP file in "Responsive Notifications" version ...
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("responsive-notifications.php" instead of "notify.php")
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,247 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 204 | 30 | 1,433 |
PHP | 2 | 135 | 106 | 676 |
JavaScript | 4 | 28 | 99 | 138 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 11.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 compressed PNG files occupy 0.48MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 44.03KB | 42.98KB | ▼ 2.38% |
screenshot-4.png | 44.80KB | 43.83KB | ▼ 2.17% |
screenshot-2.png | 40.75KB | 40.29KB | ▼ 1.12% |
screenshot-10.png | 49.26KB | 47.77KB | ▼ 3.02% |
screenshot-5.png | 35.04KB | 34.66KB | ▼ 1.09% |