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
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼0.04ms] Passed 4 tests
Server-side resources used by Knowledge Base
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 51.62 ▲5.50 |
Dashboard /wp-admin | 3.58 ▲0.28 | 52.08 ▼2.35 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 46.70 ▼6.83 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 106.23 ▲5.45 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.22 ▲3.57 |
Add New Article /wp-admin/post-new.php?post_type=wz_knowledgebase | 6.26 | 93.72 |
All Articles /wp-admin/edit.php?post_type=wz_knowledgebase | 3.48 | 41.23 |
Settings /wp-admin/edit.php?post_type=wz_knowledgebase&page=wzkb-settings | 3.50 | 40.28 |
Sections /wp-admin/edit-tags.php?taxonomy=wzkb_category&post_type=wz_knowledgebase | 3.43 | 37.44 |
Tags /wp-admin/edit-tags.php?taxonomy=wzkb_tag&post_type=wz_knowledgebase | 3.43 | 35.43 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 10 new options
New WordPress options |
---|
wzkb_settings |
theysaidso_admin_options |
db_upgraded |
widget_widget_wzkb_articles |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_widget_wzkb_breadcrumb |
widget_widget_wzkb_sections |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Knowledge Base
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 13.64 ▼1.03 | 1.82 ▼0.05 | 41.24 ▼3.68 |
Dashboard /wp-admin | 2,253 ▲62 | 4.86 ▼0.00 | 101.05 ▼3.88 | 38.39 ▲0.81 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.02 ▼0.04 | 37.07 ▼1.24 | 31.42 ▼3.55 |
Add New Post /wp-admin/post-new.php | 6,395 ▲4,862 | 28.03 ▲4.82 | 925.58 ▲258.76 | 42.26 ▼10.44 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.22 ▲0.02 | 98.75 ▼3.84 | 45.62 ▲1.52 |
Add New Article /wp-admin/post-new.php?post_type=wz_knowledgebase | 6,203 | 20.31 | 915.55 | 33.94 |
All Articles /wp-admin/edit.php?post_type=wz_knowledgebase | 1,161 | 1.93 | 32.73 | 30.45 |
Settings /wp-admin/edit.php?post_type=wz_knowledgebase&page=wzkb-settings | 1,712 | 5.46 | 116.34 | 83.71 |
Sections /wp-admin/edit-tags.php?taxonomy=wzkb_category&post_type=wz_knowledgebase | 1,309 | 2.14 | 25.61 | 28.57 |
Tags /wp-admin/edit-tags.php?taxonomy=wzkb_tag&post_type=wz_knowledgebase | 1,278 | 2.13 | 27.26 | 27.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_widget_wzkb_breadcrumb
- can_compress_scripts
- widget_widget_wzkb_sections
- widget_widget_wzkb_articles
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/knowledgebase/includes/public/templates/archive-wz_knowledgebase.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/knowledgebase/includes/public/templates/single-wz_knowledgebase.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/knowledgebase/includes/public/templates/wzkb-search.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_active_sidebar() in wp-content/plugins/knowledgebase/includes/public/templates/sidebar-primary.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/knowledgebase/includes/admin/settings/sidebar.php:15
- > PHP Fatal error
Uncaught Error: Call to a member function get_queried_object() on null in wp-content/plugins/knowledgebase/includes/public/templates/taxonomy-wzkb_category.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
6 plugin tags: support, faq, documentation, frequently asked questions, knowledge base...
knowledgebase/knowledgebase.php Passed 13 tests
The main PHP file in "Knowledge Base" ver. 2.2.0 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
Fastest way to create a highly-flexible multi-product knowledge base.
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
Success! There were no dangerous files found in this plugin4,640 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 866 | 2,131 | 2,867 |
JavaScript | 13 | 59 | 125 | 480 |
PO File | 1 | 173 | 194 | 459 |
CSS | 5 | 81 | 13 | 358 |
Sass | 3 | 54 | 0 | 256 |
JSON | 2 | 0 | 0 | 125 |
Markdown | 1 | 45 | 0 | 71 |
XML | 1 | 8 | 6 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 32.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 5 | 5.68% |
▷ Public methods | 87 | 98.86% |
▷ Protected methods | 1 | 1.14% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 55 | 98.21% |
▷ Anonymous functions | 1 | 1.79% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/public/images/search-icon.png | 2.09KB | 2.11KB | 0.00% |
includes/public/images/default-thumb.png | 4.22KB | 4.40KB | 0.00% |
includes/admin/settings/images/fb.png | 1.51KB | 1.59KB | 0.00% |
includes/admin/images/fb.png | 1.51KB | 1.59KB | 0.00% |