Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼307.12ms] Passed 4 tests
A check of server-side resources used by A Dashboard Notice
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 52.67 ▲2.89 |
Dashboard /wp-admin | 3.45 ▲0.03 | 35.05 ▲1.05 |
Posts /wp-admin/edit.php | 3.68 ▲0.03 | 43.18 ▲6.74 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 105.27 ▼1,229.46 |
Media Library /wp-admin/upload.php | 3.33 ▲0.02 | 25.33 ▼2.96 |
A Dashboard Notice /wp-admin/options-general.php?page=a_dashboard_notice | 3.30 | 22.82 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by A Dashboard Notice
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲46 | 15.90 ▲0.20 | 6.12 ▲0.09 | 2.37 ▲0.22 |
Dashboard /wp-admin | 2,897 ▲39 | 6.06 ▼0.26 | 118.75 ▼14.91 | 152.22 ▼9.34 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.00 | 63.75 ▼0.94 | 138.61 ▼4.70 |
Add New Post /wp-admin/post-new.php | 1,663 ▲2 | 17.34 ▲1.75 | 406.09 ▼29.78 | 155.42 ▼5.64 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.50 ▲0.01 | 135.58 ▼5.14 | 183.05 ▼8.70 |
A Dashboard Notice /wp-admin/options-general.php?page=a_dashboard_notice | 1,007 | 2.41 | 52.30 | 113.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-dashboard-notice/lib/class-adn-settings.php:135
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-dashboard-notice/lib/notice.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/a-dashboard-notice/a-dashboard-notice.php:26
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: dashboard
a-dashboard-notice/a-dashboard-notice.php Passed 13 tests
The main PHP file in "A Dashboard Notice" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Display a notice in the WordPress Dashboard to all users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin133 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 32 | 35 | 133 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 2 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin