Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpkn_install_step_setting' not found or invalid function name
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.27ms] Passed 4 tests
Server-side resources used by WP Knowledge Base
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.11 | 43.99 ▼1.64 |
Dashboard /wp-admin | 4.14 ▲0.51 | 55.37 ▼13.60 |
Posts /wp-admin/edit.php | 3.79 ▲0.11 | 52.73 ▲0.74 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.12 | 89.71 ▼12.98 |
Media Library /wp-admin/upload.php | 3.60 ▲0.11 | 38.09 ▼0.86 |
All Guides /wp-admin/edit.php?post_type=article | 3.65 | 41.69 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=article | 3.60 | 42.76 |
Add New /wp-admin/post-new.php?post_type=article | 3.80 | 55.68 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=article | 3.60 | 39.10 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
category_children |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Knowledge Base
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲105 | 14.26 ▲0.01 | 1.61 ▼0.39 | 38.76 ▼0.24 |
Dashboard /wp-admin | 2,291 ▲120 | 5.73 ▲0.07 | 83.57 ▼18.06 | 43.90 ▼2.90 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.04 ▲0.03 | 34.12 ▼6.15 | 37.63 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,589 ▲63 | 18.48 ▲0.94 | 607.36 ▼103.69 | 54.37 ▼3.54 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.22 ▼0.03 | 95.92 ▲1.24 | 45.68 ▲2.36 |
All Guides /wp-admin/edit.php?post_type=article | 1,157 | 1.94 | 34.02 | 29.24 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=article | 1,499 | 2.17 | 28.31 | 33.83 |
Add New /wp-admin/post-new.php?post_type=article | 2,478 | 7.51 | 184.93 | 71.62 |
Settings /wp-admin/wp-knowledge-base.php | 26 | 0.44 | 0.11 | 12.37 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=article | 1,360 | 2.19 | 27.72 | 30.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- category_children
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-knowledge-base/wp-knowledge-base.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-knowledge-base/templates/wpkb-index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-knowledge-base/single-article.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/wp-knowledge-base.php
- > Network (severe)
wp-admin/wp-knowledge-base.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: wp knowledgebase, knowledgebase, faq, knowledge base
wp-knowledge-base/wp-knowledge-base.php 92% from 13 tests
The principal PHP file in "WP Knowledge Base" v. 0.4.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin498 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 155 | 66 | 498 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
PNG images were not found in this plugin