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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.00MB] [CPU: ▲1.28ms] Passed 4 tests
Server-side resources used by HelpPress Knowledge Base
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.73 | 50.13 ▼3.96 |
Dashboard /wp-admin | 4.43 ▲1.12 | 61.90 ▲9.51 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 58.00 ▲4.07 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 96.36 ▼4.50 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 50.14 ▲12.56 |
All Articles /wp-admin/edit.php?post_type=hp_article | 4.41 | 49.53 |
Add New /wp-admin/post-new.php?post_type=hp_article | 7.12 | 104.21 |
Settings /wp-admin/edit.php?post_type=hp_article&page=helppress_options | 4.78 | 55.44 |
Article Categories /wp-admin/edit-tags.php?taxonomy=hp_category&post_type=hp_article | 4.29 | 46.11 |
Article Tags /wp-admin/edit-tags.php?taxonomy=hp_tag&post_type=hp_article | 4.29 | 47.58 |
Server storage [IO: ▲3.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 494 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
helppress_version |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HelpPress Knowledge Base
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲173 | 13.51 ▼0.84 | 10.73 ▲8.05 | 39.90 ▼6.64 |
Dashboard /wp-admin | 2,249 ▲72 | 5.72 ▲0.06 | 92.89 ▼1.05 | 42.31 ▲1.31 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 2.07 ▲0.09 | 37.86 ▼2.00 | 33.88 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.09 ▼0.50 | 678.93 ▲45.58 | 54.12 ▲1.08 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.25 ▲0.04 | 97.85 ▼10.78 | 42.92 ▲1.04 |
All Articles /wp-admin/edit.php?post_type=hp_article | 1,204 | 2.05 | 37.91 | 32.07 |
Add New /wp-admin/post-new.php?post_type=hp_article | 6,342 | 23.74 | 944.04 | 33.20 |
Settings /wp-admin/edit.php?post_type=hp_article&page=helppress_options | 1,390 | 2.43 | 32.67 | 49.36 |
Article Categories /wp-admin/edit-tags.php?taxonomy=hp_category&post_type=hp_article | 1,333 | 2.20 | 35.65 | 41.13 |
Article Tags /wp-admin/edit-tags.php?taxonomy=hp_tag&post_type=hp_article | 1,299 | 2.23 | 29.49 | 32.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- helppress_version
- db_upgraded
Smoke tests 50% 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 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/helppress/includes/vendor/cmb2/cmb2/apigen/hook-docs.php
- 68× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/helppress/includes/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function helppress_get_option() in wp-content/plugins/helppress/templates/parts/helppress-breadcrumb.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/helppress/includes/vendor/cmb2/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/helppress/includes/vendor/cmb2/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/helppress/templates/parts/helppress-open-content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/helppress/templates/helppress-search.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/helppress/includes/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/helppress/includes/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Warning
file_put_contents(/Users/JT/Sites/wpengine/api/hook-docs.html): failed to open stream: No such file or directory in wp-content/plugins/helppress/includes/vendor/cmb2/cmb2/apigen/hook-docs.php on line 229
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/helppress/includes/vendor/cmb2/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were 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
5 plugin tags: helpdesk, knowledgebase, help desk, knowledge base, wiki
helppress/helppress.php Passed 13 tests
The entry point to "HelpPress Knowledge Base" version 3.1.4 is a PHP file that has certain tags in its header comment area
94 characters long description:
A powerful and easy-to-use knowledge base plugin for WordPress, compatible with 99% of themes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected58,974 lines of code in 308 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 108 | 3,245 | 8,108 | 10,745 |
CSS | 16 | 394 | 1,202 | 5,163 |
JSON | 7 | 0 | 0 | 4,478 |
JavaScript | 18 | 689 | 801 | 3,325 |
Sass | 26 | 335 | 29 | 1,590 |
Markdown | 7 | 365 | 0 | 1,079 |
SVG | 1 | 0 | 0 | 104 |
Bourne Shell | 1 | 21 | 8 | 99 |
XML | 2 | 6 | 14 | 34 |
YAML | 1 | 7 | 0 | 23 |
HTML | 1 | 6 | 0 | 11 |
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.44 |
Average class complexity | 19.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 9 | 10.47% |
▷ Concrete classes | 77 | 89.53% |
▷ Final classes | 1 | 1.30% |
Methods | 724 | |
▷ Static methods | 121 | 16.71% |
▷ Public methods | 599 | 82.73% |
▷ Protected methods | 118 | 16.30% |
▷ Private methods | 7 | 0.97% |
Functions | 79 | |
▷ Named functions | 78 | 98.73% |
▷ Anonymous functions | 1 | 1.27% |
Constants | 26 | |
▷ Global constants | 10 | 38.46% |
▷ Class constants | 16 | 61.54% |
▷ Public constants | 16 | 100.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
22 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
includes/vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-last.png | 0.17KB | 0.11KB | ▼ 36.05% |
includes/vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |