Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.02ms] Passed 4 tests
Server-side resources used by WP Dashboard Messages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.96 ▼4.45 |
Dashboard /wp-admin | 3.35 ▲0.01 | 45.93 ▼11.50 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 44.96 ▲2.36 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.13 ▼10.48 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.33 ▲5.37 |
All Messages /wp-admin/edit.php?post_type=dashboard_message | 3.33 | 34.21 |
Add New /wp-admin/post-new.php?post_type=dashboard_message | 3.50 | 51.80 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Dashboard Messages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.23 ▼0.12 | 1.67 ▲0.01 | 38.28 ▼1.25 |
Dashboard /wp-admin | 2,226 ▲49 | 5.55 ▼0.04 | 84.25 ▼9.06 | 37.31 ▼8.90 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.98 ▲0.01 | 35.76 ▼0.05 | 33.90 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.18 ▲0.17 | 661.56 ▲22.08 | 55.30 ▲3.80 |
Media Library /wp-admin/upload.php | 1,501 ▲101 | 4.19 ▼0.08 | 98.38 ▼2.47 | 41.90 ▼0.82 |
All Messages /wp-admin/edit.php?post_type=dashboard_message | 1,111 | 1.96 | 33.03 | 27.69 |
Add New /wp-admin/post-new.php?post_type=dashboard_message | 3,824 | 7.70 | 189.65 | 66.48 |
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_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 10× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-dashboard-messages/include/DashboardMessages/Core/Singleton.php
- > /wp-content/plugins/wp-dashboard-messages/include/DashboardMessages/PostType/PostType.php
- > /wp-content/plugins/wp-dashboard-messages/include/autoload.php
- > /wp-content/plugins/wp-dashboard-messages/include/DashboardMessages/Core/Plugin.php
- > /wp-content/plugins/wp-dashboard-messages/include/DashboardMessages/PostType/PostTypeDashboardMessage.php
- > /wp-content/plugins/wp-dashboard-messages/include/DashboardMessages/Core/PluginComponent.php
- > /wp-content/plugins/wp-dashboard-messages/include/DashboardMessages/Core/Core.php
- > /wp-content/plugins/wp-dashboard-messages/include/DashboardMessages/Admin/Admin.php
- > /wp-content/plugins/wp-dashboard-messages/include/DashboardMessages/Compat/WPMU.php
- > /wp-content/plugins/wp-dashboard-messages/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: admin, dashboard
wp-dashboard-messages/index.php 92% from 13 tests
The main file in "WP Dashboard Messages" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-dashboard-messages.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,731 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 326 | 439 | 1,044 |
JSON | 1 | 0 | 0 | 334 |
PO File | 2 | 138 | 200 | 306 |
JavaScript | 2 | 1 | 4 | 43 |
CSS | 4 | 0 | 2 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 3 | 37.50% |
▷ Concrete classes | 5 | 62.50% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 5 | 7.14% |
▷ Public methods | 58 | 82.86% |
▷ Protected methods | 9 | 12.86% |
▷ Private methods | 3 | 4.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ 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
PNG images were not found in this plugin