Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼178.71ms] Passed 4 tests
Analyzing server-side resources used by Admin Notices Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 25.08 ▲1.93 |
Dashboard /wp-admin | 3.14 ▲0.07 | 32.63 ▼10.41 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 31.92 ▲2.69 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 69.97 ▼707.10 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 23.75 ▲0.73 |
Admin Notices /wp-admin/options-general.php?page=admin_notices_settings | 3.06 | 20.31 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 120 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Notices Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,732 ▲131 | 16.05 ▲0.12 | 9.93 ▲5.07 | 75.65 ▼1.96 |
Dashboard /wp-admin | 2,996 ▲97 | 6.47 ▲0.36 | 120.62 ▼14.80 | 167.92 ▼7.68 |
Posts /wp-admin/edit.php | 2,779 ▲39 | 3.22 ▼0.02 | 80.44 ▲14.83 | 137.06 ▼4.29 |
Add New Post /wp-admin/post-new.php | 2,375 ▼1,329 | 15.96 ▼2.46 | 425.95 ▼13.10 | 169.71 ▼8.51 |
Media Library /wp-admin/upload.php | 1,828 ▲76 | 5.86 ▲0.35 | 133.58 ▼11.20 | 182.78 ▼0.78 |
Admin Notices /wp-admin/options-general.php?page=admin_notices_settings | 1,525 | 3.57 | 88.96 | 130.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 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/admin-notices-manager/admin-notices-manager.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: notices, dashboard notices, manage admin notices, hide admin notices, admin notices
admin-notices-manager/admin-notices-manager.php Passed 13 tests
The main PHP script in "Admin Notices Manager" version 1.3.1 is automatically included on every request by WordPress
86 characters long description:
Better manage admin notices & never miss an important WordPress and developer message.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin21,246 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 73 | 2,689 | 812 | 10,412 |
JSON | 4 | 0 | 0 | 7,522 |
PHP | 20 | 436 | 970 | 2,135 |
CSS | 5 | 84 | 3 | 510 |
Markdown | 2 | 46 | 0 | 294 |
PO File | 2 | 93 | 97 | 256 |
Sass | 1 | 20 | 0 | 117 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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.90 |
▷ 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 | 87 | |
▷ Static methods | 29 | 33.33% |
▷ Public methods | 72 | 82.76% |
▷ Protected methods | 10 | 11.49% |
▷ Private methods | 5 | 5.75% |
Functions | 16 | |
▷ Named functions | 12 | 75.00% |
▷ Anonymous functions | 4 | 25.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected