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.07MB] [CPU: ▼11.55ms] Passed 4 tests
A check of server-side resources used by Custom Help
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 36.48 ▼5.32 |
Dashboard /wp-admin | 3.43 ▲0.13 | 33.71 ▼13.41 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 38.88 ▼6.77 |
Add New Post /wp-admin/post-new.php | 5.68 ▼0.20 | 77.57 ▼20.70 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 32.38 ▼1.61 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_customhelp |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
customhelp_version |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Help
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲160 | 14.82 ▲0.26 | 1.74 ▼0.27 | 39.82 ▲0.45 |
Dashboard /wp-admin | 2,326 ▲135 | 4.87 ▼0.01 | 96.63 ▼6.39 | 66.33 ▲23.48 |
Posts /wp-admin/edit.php | 2,206 ▲114 | 2.00 ▲0.00 | 37.61 ▲2.23 | 35.26 ▲4.00 |
Add New Post /wp-admin/post-new.php | 1,645 ▲131 | 23.19 ▲5.65 | 701.97 ▲48.96 | 54.73 ▲2.62 |
Media Library /wp-admin/upload.php | 1,499 ▲108 | 4.21 ▲0.02 | 104.73 ▲7.21 | 74.43 ▲28.40 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/custom-help/templates/help_tab_content.php:4
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: management, documentation, help, support
custom-help/custom-help.php Passed 13 tests
The primary PHP file in "Custom Help" version 1.0.1 is used by WordPress to initiate all plugin functionality
54 characters long description:
Plugin to add custom documentation to all admin pages.
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
No dangerous file extensions were detected1,773 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 465 | 359 | 1,609 |
CSS | 2 | 1 | 0 | 108 |
JavaScript | 2 | 8 | 0 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 44.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 4 | 4.40% |
▷ Public methods | 24 | 26.37% |
▷ Protected methods | 58 | 63.74% |
▷ Private methods | 9 | 9.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/header-background.png | 3.33KB | 0.13KB | ▼ 95.99% |
assets/images/custom-help.png | 8.11KB | 2.42KB | ▼ 70.10% |