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 gracefully, with no errors
Server metrics [RAM: ▲0.74MB] [CPU: ▲0.81ms] Passed 4 tests
This is a short check of server-side resources used by Reference - WordPress Knowledgebase Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 42.98 ▲7.84 |
Dashboard /wp-admin | 4.06 ▲0.76 | 54.50 ▲7.71 |
Posts /wp-admin/edit.php | 4.12 ▲0.77 | 55.77 ▲9.74 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 87.15 ▼22.04 |
Media Library /wp-admin/upload.php | 3.96 ▲0.74 | 45.96 ▲13.71 |
Tags /wp-admin/edit-tags.php?taxonomy=knb-tags&post_type=dsc-knowledgebase | 3.99 | 48.70 |
Reference /wp-admin/options-general.php?page=reference_settings | 3.96 | 47.64 |
All Articles /wp-admin/edit.php?post_type=dsc-knowledgebase | 4.04 | 44.42 |
Add New /wp-admin/post-new.php?post_type=dsc-knowledgebase | 4.12 | 58.60 |
Topics /wp-admin/edit-tags.php?taxonomy=knb-categories&post_type=dsc-knowledgebase | 3.99 | 43.46 |
Server storage [IO: ▲0.42MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 143 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_reference_related_articles |
widget_reference_recent_articles |
theysaidso_admin_options |
can_compress_scripts |
widget_reference_most_upvoted_articles |
Browser metrics Passed 4 tests
Checking browser requirements for Reference - WordPress Knowledgebase Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,064 ▲303 | 14.85 ▲0.32 | 4.94 ▲3.50 | 44.35 ▲2.38 |
Dashboard /wp-admin | 2,378 ▲197 | 6.18 ▲0.48 | 109.00 ▲10.40 | 39.78 ▼1.87 |
Posts /wp-admin/edit.php | 2,306 ▲206 | 3.34 ▲1.39 | 49.80 ▲13.21 | 30.42 ▼3.84 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 23.53 ▲0.52 | 649.21 ▲50.63 | 38.17 ▼5.20 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.24 ▲0.10 | 80.90 ▼18.79 | 43.83 ▼1.47 |
Tags /wp-admin/edit-tags.php?taxonomy=knb-tags&post_type=dsc-knowledgebase | 1,458 | 3.22 | 41.19 | 29.30 |
Reference /wp-admin/options-general.php?page=reference_settings | 1,390 | 3.25 | 38.80 | 33.56 |
All Articles /wp-admin/edit.php?post_type=dsc-knowledgebase | 1,340 | 3.36 | 43.78 | 27.50 |
Add New /wp-admin/post-new.php?post_type=dsc-knowledgebase | 2,916 | 7.99 | 170.49 | 69.08 |
Topics /wp-admin/edit-tags.php?taxonomy=knb-categories&post_type=dsc-knowledgebase | 1,504 | 3.20 | 41.75 | 29.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- theysaidso_admin_options
- widget_reference_most_upvoted_articles
- can_compress_scripts
- widget_recent-comments
- widget_reference_related_articles
- widget_recent-posts
- widget_reference_recent_articles
- widget_theysaidso_widget
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
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function reference_category_thumbnail() in wp-content/plugins/reference-knowledgebase-and-docs/templates/thrive/knowledgebase-none.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reference-knowledgebase-and-docs/templates/thrive/archive-dsc-knowledgebase.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reference-knowledgebase-and-docs/templates/twentyseventeen/knowledgebase-search.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function reference_breadcrumb() in wp-content/plugins/reference-knowledgebase-and-docs/templates/twentyseventeen/knowledgebase-none.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reference-knowledgebase-and-docs/templates/thrive/single-dsc-knowledgebase.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/reference-knowledgebase-and-docs/templates/search-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reference-knowledgebase-and-docs/templates/thrive/taxonomy-knb-categories.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reference-knowledgebase-and-docs/templates/twentyseventeen/archive-dsc-knowledgebase.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reference-knowledgebase-and-docs/templates/twentyseventeen/single-dsc-knowledgebase.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/reference-knowledgebase-and-docs/templates/twentyseventeen/taxonomy-knb-categories.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% 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: project, task, task discussion, collaboration
reference-knowledgebase-and-docs/reference-wordpress-knowledgebase.php 77% from 13 tests
The principal PHP file in "Reference - WordPress Knowledgebase Plugin" v. 1.0.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("reference-knowledgebase-and-docs.php" instead of "reference-wordpress-knowledgebase.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 plugin10,243 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 80 | 1,007 | 646 | 5,421 |
PHP | 50 | 816 | 2,424 | 4,358 |
Markdown | 1 | 133 | 0 | 268 |
JavaScript | 5 | 125 | 15 | 196 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 10 | 58.82% |
Methods | 122 | |
▷ Static methods | 47 | 38.52% |
▷ Public methods | 117 | 95.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.10% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 2 | 9.52% |
▷ Class constants | 19 | 90.48% |
▷ Public constants | 19 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/styles/school-book.png | 0.47KB | 0.34KB | ▼ 27.37% |
assets/css/styles/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |