Benchmarks
Plugin footprint 82% 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: ▲1.01MB] [CPU: ▲4.41ms] Passed 4 tests
This is a short check of server-side resources used by MinervaKB Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.06 | 53.17 ▲13.27 |
Dashboard /wp-admin | 4.30 ▲0.96 | 73.86 ▲10.25 |
Posts /wp-admin/edit.php | 4.43 ▲1.07 | 53.71 ▲12.45 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.02 | 83.40 ▼6.70 |
Media Library /wp-admin/upload.php | 4.23 ▲1.00 | 37.92 ▲1.63 |
Settings /wp-admin/admin.php?page=minerva-kb-submenu-settings | 4.23 | 54.22 |
Tags /wp-admin/edit-tags.php?taxonomy=kbtag&post_type=kb | 4.22 | 37.26 |
Knowledge Base /wp-admin/edit.php?post_type=kb | 4.28 | 41.44 |
Add New /wp-admin/post-new.php?post_type=kb | 4.44 | 57.66 |
Topics /wp-admin/edit-tags.php?taxonomy=kbtopic&post_type=kb | 4.22 | 44.36 |
Upgrade /wp-admin/admin.php?page=minerva-kb-menu | 4.20 | 36.36 |
Server storage [IO: ▲1.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 87 new files
Database: no new tables, 12 new options
New WordPress options |
---|
can_compress_scripts |
widget_kb_recent_topics_widget |
_mkb_flushed_rewrite_topic |
widget_theysaidso_widget |
widget_recent-comments |
widget_kb_recent_articles_widget |
db_upgraded |
minerva-kb-options |
widget_recent-posts |
_mkb_flushed_rewrite_tag |
... |
Browser metrics 75% from 4 tests
An overview of browser requirements for MinervaKB Lite
It is time to focus on the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 31,268 on /wp-admin/admin.php?page=minerva-kb-submenu-settings)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,153 ▲407 | 14.10 ▼0.46 | 6.98 ▲5.23 | 67.51 ▲22.25 |
Dashboard /wp-admin | 2,309 ▲121 | 6.07 ▲1.20 | 98.34 ▼17.44 | 39.20 ▼6.78 |
Posts /wp-admin/edit.php | 2,200 ▲111 | 2.43 ▲0.39 | 46.39 ▲11.29 | 37.31 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,599 ▲80 | 23.40 ▼0.00 | 687.52 ▲12.48 | 39.01 ▼17.40 |
Media Library /wp-admin/upload.php | 1,494 ▲106 | 4.48 ▲0.35 | 99.95 ▼13.85 | 43.15 ▼4.67 |
Settings /wp-admin/admin.php?page=minerva-kb-submenu-settings | 31,268 | 3.78 | 121.87 | 86.89 |
Tags /wp-admin/edit-tags.php?taxonomy=kbtag&post_type=kb | 1,352 | 2.30 | 33.20 | 30.35 |
Knowledge Base /wp-admin/edit.php?post_type=kb | 1,243 | 2.37 | 33.46 | 28.33 |
Add New /wp-admin/post-new.php?post_type=kb | 2,868 | 8.38 | 173.71 | 69.08 |
Topics /wp-admin/edit-tags.php?taxonomy=kbtopic&post_type=kb | 1,380 | 2.32 | 32.40 | 29.60 |
Upgrade /wp-admin/admin.php?page=minerva-kb-menu | 992 | 2.09 | 27.43 | 34.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 12 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_kb_recent_articles_widget
- _mkb_flushed_rewrite_topic
- widget_theysaidso_widget
- widget_kb_recent_topics_widget
- _mkb_flushed_rewrite_cpt
- can_compress_scripts
- minerva-kb-options
- ...
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
Please fix the following items
- 33× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/minerva-knowledge-base-lite/lib/widgets/recent-articles.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/minerva-knowledge-base-lite/lib/templates/category.php:7
- > PHP Fatal error
require_once(): Failed opening required 'MINERVA_KB_PLUGIN_DIRlib/helpers/settings-builder.php' (include_path='.:/usr/share/php') in wp-content/plugins/minerva-knowledge-base-lite/lib/ajax.php on line 7
- > PHP Warning
Use of undefined constant MINERVA_KB_PLUGIN_DIR - assumed 'MINERVA_KB_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/minerva-knowledge-base-lite/lib/app.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'MINERVA_KB_PLUGIN_DIRlib/vendor/Mobile_Detect.php' (include_path='.:/usr/share/php') in wp-content/plugins/minerva-knowledge-base-lite/lib/info.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/minerva-knowledge-base-lite/lib/templates/no-content.php:9
- > PHP Warning
Use of undefined constant MINERVA_KB_PLUGIN_DIR - assumed 'MINERVA_KB_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/minerva-knowledge-base-lite/lib/ajax.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'MINERVA_KB_PLUGIN_DIRlib/helpers/icon-options.php' (include_path='.:/usr/share/php') in wp-content/plugins/minerva-knowledge-base-lite/lib/helpers/settings-builder.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'MKB_TemplateHelper' not found in wp-content/plugins/minerva-knowledge-base-lite/lib/templates/kb-home.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/minerva-knowledge-base-lite/lib/templates/archive.php:7
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: ajax, support desk, knowledge base, helpdesk, live search...
minerva-knowledge-base-lite/minervakb.php 92% from 13 tests
The primary PHP file in "MinervaKB Lite" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("minerva-knowledge-base-lite.php" instead of "minervakb.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin14,706 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,029 | 1,425 | 5,405 |
CSS | 5 | 148 | 152 | 3,792 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 27 | 342 | 11 | 2,061 |
JavaScript | 4 | 181 | 161 | 777 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
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 | 19.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 226 | |
▷ Static methods | 65 | 28.76% |
▷ Public methods | 169 | 74.78% |
▷ Protected methods | 35 | 15.49% |
▷ Private methods | 22 | 9.73% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
Constants | 20 | |
▷ Global constants | 6 | 30.00% |
▷ Class constants | 14 | 70.00% |
▷ Public constants | 14 | 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
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/col-3.png | 0.87KB | 0.78KB | ▼ 10.59% |
assets/img/col-4.png | 1.01KB | 0.93KB | ▼ 8.66% |
assets/img/logo.png | 1.97KB | 1.84KB | ▼ 6.35% |
assets/img/no-sidebar.png | 0.58KB | 0.50KB | ▼ 13.57% |
assets/img/col-2.png | 0.80KB | 0.71KB | ▼ 10.88% |