Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.46ms] Passed 4 tests
An overview of server-side resources used by A Dashboard Notice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.76 ▼3.13 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.63 ▲1.68 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.79 ▼9.00 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.04 ▼11.13 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 36.12 ▼2.58 |
A Dashboard Notice /wp-admin/options-general.php?page=a_dashboard_notice | 3.23 | 35.21 |
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, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A Dashboard Notice: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.13 | 1.91 ▲0.11 | 44.56 ▼1.26 |
Dashboard /wp-admin | 2,193 ▲19 | 5.56 ▲0.03 | 84.85 ▼4.04 | 41.02 ▲4.45 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▲0.00 | 33.81 ▼6.07 | 37.02 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.14 ▼0.07 | 708.25 ▲20.24 | 56.11 ▲4.25 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.07 | 107.05 ▼9.05 | 47.75 ▲0.06 |
A Dashboard Notice /wp-admin/options-general.php?page=a_dashboard_notice | 796 | 2.00 | 27.04 | 30.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: dashboard
a-dashboard-notice/a-dashboard-notice.php Passed 13 tests
The entry point to "A Dashboard Notice" version 0.2.0 is a PHP file that has certain tags in its header comment area
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 | A short review of files and their extensions; it is not recommended to include executable files
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
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin