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.07MB] [CPU: ▼6.72ms] Passed 4 tests
Server-side resources used by Admin Notices Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.97 ▲1.31 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.73 ▼3.00 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 44.34 ▼3.68 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 84.82 ▼21.52 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.30 ▲2.45 |
Admin Notices /wp-admin/options-general.php?page=admin_notices_settings | 3.28 | 32.64 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 120 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
anm-notices |
Browser metrics Passed 4 tests
Checking browser requirements for Admin Notices Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲125 | 13.32 ▼1.29 | 8.14 ▲6.33 | 41.66 ▲1.90 |
Dashboard /wp-admin | 2,284 ▲93 | 5.09 ▲0.17 | 115.54 ▲13.77 | 38.70 ▼4.56 |
Posts /wp-admin/edit.php | 2,172 ▲83 | 2.41 ▲0.39 | 48.82 ▲13.88 | 32.73 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.41 ▲4.97 | 667.70 ▲22.75 | 36.39 ▼34.54 |
Media Library /wp-admin/upload.php | 1,462 ▲77 | 4.40 ▲0.27 | 105.71 ▼15.31 | 41.29 ▼5.75 |
Admin Notices /wp-admin/options-general.php?page=admin_notices_settings | 1,261 | 2.65 | 69.62 | 38.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/admin-notices-manager/admin-notices-manager.php:39
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: notices, admin notices, hide admin notices, dashboard notices, manage admin notices
admin-notices-manager/admin-notices-manager.php 92% from 13 tests
The main PHP script in "Admin Notices Manager" version 1.4.0 is automatically included on every request by WordPress
It is important to fix the following:
- Requires PHP: Required version must match the one declared in readme.txt ("7.2.0" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin21,346 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 73 | 2,693 | 813 | 10,460 |
JSON | 4 | 0 | 0 | 7,522 |
PHP | 20 | 440 | 989 | 2,166 |
CSS | 5 | 87 | 3 | 516 |
Markdown | 2 | 46 | 0 | 294 |
PO File | 2 | 93 | 97 | 256 |
Sass | 1 | 23 | 0 | 132 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 37.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 29 | 32.95% |
▷ Public methods | 73 | 82.95% |
▷ Protected methods | 10 | 11.36% |
▷ Private methods | 5 | 5.68% |
Functions | 17 | |
▷ Named functions | 13 | 76.47% |
▷ Anonymous functions | 4 | 23.53% |
Constants | 4 | |
▷ Global constants | 4 | 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