Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▼4.69ms] Passed 4 tests
This is a short check of server-side resources used by WP Notification Bars
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 42.82 ▲0.15 |
Dashboard /wp-admin | 3.59 ▲0.29 | 49.04 ▲0.09 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 51.61 ▲3.04 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 82.48 ▼22.05 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 40.05 ▲6.91 |
Add New /wp-admin/post-new.php?post_type=mts_notification_bar | 3.55 | 42.57 |
All Notification Bars /wp-admin/edit.php?post_type=mts_notification_bar | 3.55 | 36.69 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
mtsnb_stats |
theysaidso_admin_options |
widget_theysaidso_widget |
wp_notification_bar_notice_views |
db_upgraded |
wp_notification_bar_activated |
Browser metrics Passed 4 tests
WP Notification Bars: 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,843 ▲97 | 14.47 ▲0.08 | 1.57 ▼0.12 | 39.30 ▼3.93 |
Dashboard /wp-admin | 2,246 ▲55 | 4.86 ▼1.15 | 103.92 ▼2.45 | 44.37 ▲5.53 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.00 ▲0.00 | 41.57 ▲3.44 | 36.61 ▼2.24 |
Add New Post /wp-admin/post-new.php | 6,296 ▲4,763 | 26.21 ▲3.11 | 948.84 ▲344.61 | 44.19 ▼13.43 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.19 ▼0.08 | 109.94 ▲9.78 | 50.17 ▲4.19 |
Add New /wp-admin/post-new.php?post_type=mts_notification_bar | 2,322 | 3.08 | 98.70 | 40.89 |
All Notification Bars /wp-admin/edit.php?post_type=mts_notification_bar | 1,083 | 1.98 | 30.69 | 29.40 |
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 9 options in the database
- widget_recent-comments
- wp_notification_bar_notice_views
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- mtsnb_stats
- db_upgraded
- wp_notification_bar_activated
- theysaidso_admin_options
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #5 is missing in wp-notification-bars/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wp-notification-bars/wp-notification-bars.php 92% from 13 tests
This is the main PHP file of "WP Notification Bars" version 1.0.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 190 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
No dangerous file extensions were detected1,722 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 331 | 749 | 1,293 |
JavaScript | 4 | 47 | 33 | 232 |
CSS | 3 | 0 | 25 | 197 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 31.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 5.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 3 | 5.56% |
▷ Public methods | 47 | 87.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.96% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected