Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.44ms] Passed 4 tests
An overview of server-side resources used by Zedna Custom Dashboard Messages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 35.79 ▼7.04 |
Dashboard /wp-admin | 3.42 ▲0.07 | 47.52 ▼12.35 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.37 ▲0.89 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.31 ▼11.27 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.91 ▲1.88 |
Main message /wp-admin/edit.php?post_type=cd_message_1&page=cdsm_options | 3.28 | 30.05 |
Dashboard Messages /wp-admin/edit.php?post_type=cd_message_1 | 3.38 | 34.70 |
Add New /wp-admin/post-new.php?post_type=cd_message_1 | 3.46 | 44.94 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Zedna Custom Dashboard Messages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲157 | 13.71 ▼0.67 | 2.03 ▲0.08 | 43.72 ▼1.22 |
Dashboard /wp-admin | 2,306 ▲115 | 4.89 ▼0.01 | 110.20 ▼4.51 | 50.60 ▲3.55 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.06 ▲0.02 | 39.97 ▲2.08 | 34.19 ▲4.15 |
Add New Post /wp-admin/post-new.php | 1,559 ▲21 | 23.04 ▲4.88 | 615.62 ▼22.01 | 57.30 ▲3.38 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.37 ▲0.18 | 93.61 ▼8.04 | 42.07 ▼0.22 |
Main message /wp-admin/edit.php?post_type=cd_message_1&page=cdsm_options | 1,658 | 6.67 | 133.09 | 60.80 |
Dashboard Messages /wp-admin/edit.php?post_type=cd_message_1 | 1,093 | 2.00 | 31.19 | 28.22 |
Add New /wp-admin/post-new.php?post_type=cd_message_1 | 2,365 | 7.65 | 172.94 | 62.59 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=cd_message_1&page=cdsm_options
- > Notice in wp-content/plugins/custom-dashboard-messages/single-message.php+343
Trying to access array offset on value of type bool
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 fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-dashboard-messages/custom-dashboard.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/custom-dashboard-messages/single-message.php:17
- > PHP Fatal error
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: user, message, custom, dashoard, admin
custom-dashboard-messages/custom-dashboard.php 92% from 13 tests
The entry point to "Zedna Custom Dashboard Messages" version 2.2.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-dashboard-messages.php" instead of "custom-dashboard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected486 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 140 | 204 | 445 |
PO File | 1 | 10 | 12 | 41 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.33MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 107.58KB | 29.93KB | ▼ 72.18% |
assets/icon-128x128.png | 21.25KB | 10.20KB | ▼ 52.03% |
assets/screenshot-2.png | 13.78KB | 4.54KB | ▼ 67.02% |
assets/icon-256x256.png | 92.21KB | 35.02KB | ▼ 62.02% |
assets/banner-772x250.png | 92.46KB | 39.17KB | ▼ 57.64% |