Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.45MB] [CPU: ▲15.49ms] Passed 4 tests
An overview of server-side resources used by Easy Accordion FAQ and Knowledge Base Software for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.69 ▲2.22 | 50.47 ▲7.59 |
Dashboard /wp-admin | 5.83 ▲2.53 | 63.32 ▲15.23 |
Posts /wp-admin/edit.php | 5.89 ▲2.53 | 70.28 ▲27.44 |
Add New Post /wp-admin/post-new.php | 8.44 ▲2.55 | 110.73 ▲12.19 |
Media Library /wp-admin/upload.php | 5.75 ▲2.52 | 61.64 ▲26.93 |
CSV Import/Export /wp-admin/admin.php?page=operations_emd_panel | 5.72 | 49.99 |
Getting Started /wp-admin/admin.php?page=knowledge_center | 5.73 | 48.31 |
Plugins /wp-admin/admin.php?page=knowledge_center_store | 5.76 | 50.13 |
Glossary /wp-admin/admin.php?page=knowledge_center_glossary | 5.72 | 52.12 |
Add New /wp-admin/post-new.php?post_type=emd_panel | 5.92 | 69.85 |
Support /wp-admin/admin.php?page=knowledge_center_support | 5.75 | 50.77 |
KC Panels /wp-admin/edit.php?post_type=emd_panel | 5.80 | 55.94 |
Settings /wp-admin/admin.php?page=knowledge_center_settings | 5.73 | 50.36 |
KC Tags /wp-admin/edit-tags.php?taxonomy=kb_tags&post_type=emd_panel | 5.74 | 50.72 |
KC Groups /wp-admin/edit-tags.php?taxonomy=kb_group&post_type=emd_panel | 5.74 | 48.74 |
Server storage [IO: ▲2.93MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 241 new files
Database: no new tables, 20 new options
New WordPress options |
---|
can_compress_scripts |
knowledge_center_glob_init_list |
knowledge_center_cust_roles |
widget_recent-comments |
widget_recent-posts |
widget_knowledge_center_featured_panels_widget |
knowledge_center_shc_list |
knowledge_center_activation_date |
knowledge_center_tax_list |
widget_knowledge_center_recent_panels_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Accordion FAQ and Knowledge Base Software for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲245 | 13.66 ▼1.01 | 1.54 ▼0.44 | 39.67 ▼4.52 |
Dashboard /wp-admin | 2,378 ▲189 | 5.83 ▲0.88 | 108.55 ▼13.51 | 47.32 ▲1.62 |
Posts /wp-admin/edit.php | 2,266 ▲174 | 2.15 ▲0.12 | 41.89 ▲4.96 | 39.30 ▲6.89 |
Add New Post /wp-admin/post-new.php | 1,739 ▲225 | 22.42 ▲4.90 | 588.07 ▼111.32 | 70.45 ▲19.44 |
Media Library /wp-admin/upload.php | 1,563 ▲178 | 4.33 ▲0.04 | 100.51 ▼3.43 | 46.33 ▲2.31 |
CSV Import/Export /wp-admin/admin.php?page=operations_emd_panel | 1,022 | 1.68 | 22.08 | 38.95 |
Getting Started /wp-admin/admin.php?page=knowledge_center | 2,500 | 2.08 | 46.44 | 117.31 |
Plugins /wp-admin/admin.php?page=knowledge_center_store | 1,285 | 1.85 | 27.25 | 33.81 |
Glossary /wp-admin/admin.php?page=knowledge_center_glossary | 1,071 | 1.85 | 27.92 | 36.66 |
Add New /wp-admin/post-new.php?post_type=emd_panel | 2,864 | 8.28 | 190.31 | 78.67 |
Support /wp-admin/admin.php?page=knowledge_center_support | 1,263 | 1.85 | 24.64 | 46.80 |
KC Panels /wp-admin/edit.php?post_type=emd_panel | 1,334 | 2.36 | 35.24 | 36.81 |
Settings /wp-admin/admin.php?page=knowledge_center_settings | 1,405 | 2.68 | 35.95 | 33.23 |
KC Tags /wp-admin/edit-tags.php?taxonomy=kb_tags&post_type=emd_panel | 1,409 | 2.32 | 27.90 | 38.87 |
KC Groups /wp-admin/edit-tags.php?taxonomy=kb_group&post_type=emd_panel | 1,406 | 2.32 | 28.32 | 37.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 19 options
- knowledge_center_setup_pages
- knowledge_center_version
- widget_knowledge_center_recent_panels_widget
- knowledge_center_has_ratings
- widget_knowledge_center_featured_panels_widget
- knowledge_center_cust_roles
- widget_theysaidso_widget
- widget_recent-comments
- knowledge_center_add_caps
- knowledge_center_tax_list
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/knowledge-center/layouts/shc-std-panel-footer.php
- > /wp-content/plugins/knowledge-center/layouts/widget-recent-panels-footer.php
- > /wp-content/plugins/knowledge-center/layouts/shc-std-panel-header.php
- > /wp-content/plugins/knowledge-center/layouts/widget-featured-panels-footer.php
- > /wp-content/plugins/knowledge-center/layouts/widget-recent-panels-header.php
- > /wp-content/plugins/knowledge-center/layouts/widget-featured-panels-header.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/knowledge-center/includes/admin/tabs.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/knowledge-center/layouts/single-emd-panel.php:2
- > PHP Notice
Undefined variable: post in wp-content/plugins/knowledge-center/layouts/widget-recent-panels-content.php on line 1
- > PHP Notice
Undefined variable: post in wp-content/plugins/knowledge-center/layouts/widget-featured-panels-content.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function is_active_sidebar() in wp-content/plugins/knowledge-center/layouts/emd-sidebar.php:7
- > PHP Fatal error
Uncaught Error: Class 'EMD_MB_Field' not found in wp-content/plugins/knowledge-center/assets/ext/emd-meta-box/inc/fields/file-input.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/knowledge-center/includes/admin/singletax/emd-singletax-functions.php:2
- > PHP Warning
Use of undefined constant KNOWLEDGE_CENTER_PLUGIN_URL - assumed 'KNOWLEDGE_CENTER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/knowledge-center/includes/admin/tabs.php on line 47
- > PHP Notice
Undefined variable: post in wp-content/plugins/knowledge-center/layouts/single-emd-panel.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/knowledge-center/includes/admin/shortcode-list-functions.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: accordion, knowledge base, faq, documentation, knowledgebase
knowledge-center/knowledge-center.php Passed 13 tests
"Easy Accordion FAQ and Knowledge Base Software for WordPress" version 2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Knowledge Center helps categorize related short content in a user-friendly way.
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
Success! There were no dangerous files found in this plugin20,525 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 616 | 3,079 | 12,867 |
JavaScript | 43 | 448 | 552 | 3,702 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 32 | 80 | 66 | 1,285 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 55 | 100.00% |
▷ Final classes | 1 | 1.82% |
Methods | 292 | |
▷ Static methods | 199 | 68.15% |
▷ Public methods | 280 | 95.89% |
▷ Protected methods | 6 | 2.05% |
▷ Private methods | 6 | 2.05% |
Functions | 109 | |
▷ Named functions | 108 | 99.08% |
▷ Anonymous functions | 1 | 0.92% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
52 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/addons/spotlight-arch-300x200.png | 12.70KB | 13.13KB | 0.00% |
assets/img/emd_templating_system.png | 23.46KB | 24.44KB | 0.00% |
assets/img/dashboard.png | 4.42KB | 4.51KB | 0.00% |
assets/ext/emd-meta-box/css/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/img/button_buy-now.png | 1.68KB | 1.70KB | 0.00% |