68% wedocs

Code Review | weDocs – Knowledgebase and Documentation Plugin for WordPress

WordPress plugin weDocs – Knowledgebase and Documentation Plugin for WordPress scored68%from 54 tests.

About plugin

  • Plugin page: wedocs
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Nov 6, 2023
  • Number of updates: 47
  • Update frequency: every 59.7 days
  • Top authors: tareq1988 (100%)

Code review

54 tests

User reviews

63 reviews

Install metrics

6,000+ active /99,507 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.98 ▲1.5156.52 ▲13.95
Dashboard /wp-admin5.00 ▲1.7062.05 ▲12.41
Posts /wp-admin/edit.php5.06 ▲1.7065.24 ▲19.94
Add New Post /wp-admin/post-new.php7.89 ▲2.00101.68 ▲3.98
Media Library /wp-admin/upload.php4.92 ▲1.6957.06 ▲20.95
Scheduled Actions /wp-admin/tools.php?page=action-scheduler5.1159.14
Tags /wp-admin/edit-tags.php?taxonomy=doc_tag&post_type=docs4.9151.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,034 ▲27214.15 ▼0.141.64 ▼0.1142.10 ▼5.30
Dashboard /wp-admin2,421 ▲2415.59 ▼0.0699.86 ▲6.0787.11 ▲49.72
Posts /wp-admin/edit.php2,345 ▲2422.14 ▲0.1936.60 ▼4.6433.35 ▼2.33
Add New Post /wp-admin/post-new.php1,790 ▲26323.97 ▲0.78833.86 ▲151.2055.49 ▼10.08
Media Library /wp-admin/upload.php1,638 ▲2384.13 ▼0.13111.29 ▲7.7268.16 ▲24.97
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,4902.2228.6931.12
Tags /wp-admin/edit-tags.php?taxonomy=doc_tag&post_type=docs1,4902.3032.0832.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1362,9127,82311,509
CSS43341216,464
PO File4389397921
Markdown31190345
JavaScript113721251
JSON300153
SVG200121
XML161195
YAML16032

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 code0.33
Average class complexity12.35
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces12
Interfaces3
Traits0
Classes109
▷ Abstract classes1614.68%
▷ Concrete classes9385.32%
▷ Final classes11.08%
Methods882
▷ Static methods9510.77%
▷ Public methods66875.74%
▷ Protected methods14716.67%
▷ Private methods677.60%
Functions52
▷ Named functions4178.85%
▷ Anonymous functions1121.15%
Constants39
▷ Global constants512.82%
▷ Class constants3487.18%
▷ Public constants34100.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