Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▲5.19ms] Passed 4 tests
Analyzing server-side resources used by Admin Help Docs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.26 ▲1.38 |
Dashboard /wp-admin | 4.15 ▲0.80 | 58.57 ▼3.57 |
Posts /wp-admin/edit.php | 4.20 ▲0.85 | 60.13 ▲10.61 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.87 | 111.13 ▲12.32 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 53.56 ▲17.60 |
Folders /wp-admin/edit-tags.php?taxonomy=help-docs-folder | 4.23 | 51.07 |
Documentation /wp-admin/admin.php?page=admin-help-docs&tab=documentation | 4.09 | 49.87 |
Settings /wp-admin/admin.php?page=admin-help-docs&tab=settings | 4.24 | 54.14 |
Manage /wp-admin/edit.php?post_type=help-docs | 4.15 | 51.37 |
FAQ /wp-admin/admin.php?page=admin-help-docs&tab=faq | 4.02 | 49.68 |
About /wp-admin/admin.php?page=admin-help-docs&tab=about | 4.16 | 338.35 |
Imports /wp-admin/edit.php?post_type=help-doc-imports | 4.15 | 50.94 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
helpdocs_plugin_installed |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
helpdocs_plugin_activated |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Admin Help Docs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲91 | 14.65 ▲0.41 | 1.83 ▲0.22 | 37.62 ▼5.13 |
Dashboard /wp-admin | 2,246 ▲72 | 5.62 ▲0.04 | 83.51 ▼18.09 | 36.77 ▼6.18 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.07 ▲0.04 | 36.91 ▼3.24 | 33.22 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,571 ▲37 | 24.94 ▼0.11 | 606.87 ▼36.82 | 57.49 ▼11.93 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.17 ▼0.04 | 95.47 ▼4.44 | 42.35 ▼1.03 |
Folders /wp-admin/edit-tags.php?taxonomy=help-docs-folder | 1,368 | 2.09 | 31.04 | 36.40 |
Documentation /wp-admin/admin.php?page=admin-help-docs&tab=documentation | 883 | 1.85 | 34.91 | 32.04 |
Settings /wp-admin/admin.php?page=admin-help-docs&tab=settings | 2,489 | 2.04 | 26.55 | 40.83 |
Manage /wp-admin/edit.php?post_type=help-docs | 1,340 | 1.88 | 31.97 | 31.28 |
FAQ /wp-admin/admin.php?page=admin-help-docs&tab=faq | 1,320 | 1.99 | 26.47 | 62.73 |
About /wp-admin/admin.php?page=admin-help-docs&tab=about | 1,095 | 2.01 | 22.74 | 31.25 |
Imports /wp-admin/edit.php?post_type=help-doc-imports | 1,194 | 1.90 | 33.69 | 29.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- helpdocs_plugin_installed
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function helpdocs_get() in wp-content/plugins/admin-help-docs/includes/admin/header-page.php:7
- > PHP Warning
Use of undefined constant HELPDOCS_PLUGIN_ADMIN_PATH - assumed 'HELPDOCS_PLUGIN_ADMIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/admin-help-docs/includes/admin/header.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function helpdocs_get() in wp-content/plugins/admin-help-docs/includes/admin/header-page.php:7
- > PHP Fatal error
Uncaught Error: Class 'HELPDOCS_COLORS' not found in wp-content/plugins/admin-help-docs/includes/admin/option-about.php:3
- > PHP Fatal error
Uncaught Error: Class 'HELPDOCS_COLORS' not found in wp-content/plugins/admin-help-docs/includes/admin/option-documentation.php:3
- > PHP Warning
include(): Failed opening 'HELPDOCS_PLUGIN_ADMIN_PATHcss/style.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/admin-help-docs/includes/admin/header.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function helpdocs_get() in wp-content/plugins/admin-help-docs/includes/admin/header-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function helpdocs_get() in wp-content/plugins/admin-help-docs/includes/admin/header-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function helpdocs_get() in wp-content/plugins/admin-help-docs/includes/admin/header-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function helpdocs_get() in wp-content/plugins/admin-help-docs/includes/admin/header-page.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: help, how-to, documentation, admin, instructions
admin-help-docs/admin-help-docs.php Passed 13 tests
"Admin Help Docs" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Site developers and operators can easily create help documentation for the admin area
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
No dangerous file extensions were detected6,290 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,468 | 2,172 | 5,748 |
JavaScript | 5 | 105 | 112 | 463 |
CSS | 1 | 0 | 0 | 79 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 31.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 6.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 2 | 2.35% |
▷ Public methods | 85 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 59 | |
▷ Named functions | 44 | 74.58% |
▷ Anonymous functions | 15 | 25.42% |
Constants | 26 | |
▷ Global constants | 26 | 100.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
9 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/img/icon_stackex.png | 3.48KB | 0.70KB | ▼ 79.82% |
includes/admin/img/text-area-resizer_wh_sm.png | 0.46KB | 0.31KB | ▼ 32.41% |
includes/admin/img/text-area-resizer_wh_sm_trans.png | 0.36KB | 0.23KB | ▼ 36.26% |
includes/admin/img/text-area-resizer-wh-large.png | 2.75KB | 0.83KB | ▼ 69.76% |
includes/admin/img/discord.png | 158.33KB | 63.98KB | ▼ 59.59% |