Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.65MB] [CPU: ▲12.57ms] Passed 4 tests
This is a short check of server-side resources used by weDocs – Knowledgebase and Documentation Plugin for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.98 ▲1.51 | 56.52 ▲13.95 |
Dashboard /wp-admin | 5.00 ▲1.70 | 62.05 ▲12.41 |
Posts /wp-admin/edit.php | 5.06 ▲1.70 | 65.24 ▲19.94 |
Add New Post /wp-admin/post-new.php | 7.89 ▲2.00 | 101.68 ▲3.98 |
Media Library /wp-admin/upload.php | 4.92 ▲1.69 | 57.06 ▲20.95 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 5.11 | 59.14 |
Tags /wp-admin/edit-tags.php?taxonomy=doc_tag&post_type=docs | 4.91 | 51.30 |
Server storage [IO: ▲2.01MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 196 new files
Database: 4 new tables, 13 new options
New tables |
---|
wp_actionscheduler_logs |
wp_actionscheduler_actions |
wp_actionscheduler_groups |
wp_actionscheduler_claims |
New WordPress options |
---|
widget_recent-posts |
widget_wedocs-search-widget |
widget_recent-comments |
widget_theysaidso_widget |
wedocs_version |
schema-ActionScheduler_StoreSchema |
db_upgraded |
action_scheduler_hybrid_store_demarkation |
schema-ActionScheduler_LoggerSchema |
wedocs_installed |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for weDocs – Knowledgebase and Documentation Plugin for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,034 ▲272 | 14.15 ▼0.14 | 1.64 ▼0.11 | 42.10 ▼5.30 |
Dashboard /wp-admin | 2,421 ▲241 | 5.59 ▼0.06 | 99.86 ▲6.07 | 87.11 ▲49.72 |
Posts /wp-admin/edit.php | 2,345 ▲242 | 2.14 ▲0.19 | 36.60 ▼4.64 | 33.35 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,790 ▲263 | 23.97 ▲0.78 | 833.86 ▲151.20 | 55.49 ▼10.08 |
Media Library /wp-admin/upload.php | 1,638 ▲238 | 4.13 ▼0.13 | 111.29 ▲7.72 | 68.16 ▲24.97 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,490 | 2.22 | 28.69 | 31.12 |
Tags /wp-admin/edit-tags.php?taxonomy=doc_tag&post_type=docs | 1,490 | 2.30 | 32.08 | 32.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 4 tables in the database
- wp_actionscheduler_logs
- wp_actionscheduler_claims
- wp_actionscheduler_actions
- wp_actionscheduler_groups
- Zombie WordPress options detected upon uninstall: 13 options
- schema-ActionScheduler_LoggerSchema
- action_scheduler_hybrid_store_demarkation
- wedocs_settings
- theysaidso_admin_options
- schema-ActionScheduler_StoreSchema
- widget_recent-comments
- widget_wedocs-search-widget
- wedocs_version
- db_upgraded
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wedocs/templates/admin/docs.php
- 67× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wedocs/includes/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wedocs/includes/functions.php:305
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/wedocs/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/wedocs/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/wedocs/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wedocs/includes/API/API.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wedocs/templates/single-docs.php:7
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wedocs/includes/functions.php on line 302
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wedocs/includes/API/SettingsApi.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wedocs/templates/pro-notice.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: wordpress documentation, documentation, knowledge base, knowledge base plugin, wordpress docs plugin...
wedocs/wedocs.php Passed 13 tests
The main file in "weDocs – Knowledgebase and Documentation Plugin for WordPress" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
A documentation plugin for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected19,891 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 2,912 | 7,823 | 11,509 |
CSS | 4 | 334 | 121 | 6,464 |
PO File | 4 | 389 | 397 | 921 |
Markdown | 3 | 119 | 0 | 345 |
JavaScript | 11 | 37 | 21 | 251 |
JSON | 3 | 0 | 0 | 153 |
SVG | 2 | 0 | 0 | 121 |
XML | 1 | 6 | 11 | 95 |
YAML | 1 | 6 | 0 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 109 | |
▷ Abstract classes | 16 | 14.68% |
▷ Concrete classes | 93 | 85.32% |
▷ Final classes | 1 | 1.08% |
Methods | 882 | |
▷ Static methods | 95 | 10.77% |
▷ Public methods | 668 | 75.74% |
▷ Protected methods | 147 | 16.67% |
▷ Private methods | 67 | 7.60% |
Functions | 52 | |
▷ Named functions | 41 | 78.85% |
▷ Anonymous functions | 11 | 21.15% |
Constants | 39 | |
▷ Global constants | 5 | 12.82% |
▷ Class constants | 34 | 87.18% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin