Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.18ms] Passed 4 tests
A check of server-side resources used by LH Dashboard Notes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.99 ▲0.42 |
Dashboard /wp-admin | 3.34 ▲0.00 | 44.97 ▼22.07 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.43 ▲1.70 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.58 ▼20.35 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.08 ▲1.29 |
Add New /wp-admin/post-new.php?post_type=lh-dashboard-note | 3.38 | 45.57 |
All Notes /wp-admin/edit.php?post_type=lh-dashboard-note | 3.31 | 35.02 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
LH Dashboard Notes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 13.32 ▼1.30 | 4.90 ▲2.68 | 43.39 ▲0.40 |
Dashboard /wp-admin | 2,233 ▲48 | 6.01 ▲1.13 | 105.83 ▲0.14 | 39.47 ▼7.44 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▲0.06 | 38.27 ▲3.25 | 34.17 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.05 ▲5.40 | 656.80 ▼40.05 | 58.74 ▲2.33 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.24 ▲0.05 | 97.24 ▼12.60 | 43.80 ▼4.40 |
Add New /wp-admin/post-new.php?post_type=lh-dashboard-note | 2,163 | 7.74 | 184.12 | 66.55 |
All Notes /wp-admin/edit.php?post_type=lh-dashboard-note | 1,080 | 2.01 | 29.36 | 27.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-dashboard-notes/lh-dashboard-notes.php:251
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
lh-dashboard-notes/lh-dashboard-notes.php 92% from 13 tests
"LH Dashboard Notes" version 1.09's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected122 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 116 | 33 | 122 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 9 | |
▷ Static methods | 2 | 22.22% |
▷ Public methods | 6 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/lh-dashboard-widgets-menuicon.png | 65.82KB | 0.70KB | ▼ 98.94% |