90% userdocs

Code Review | UserDocs

WordPress plugin UserDocs scored90%from 54 tests.

About plugin

  • Plugin page: userdocs
  • Plugin version: 0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Feb 2, 2017
  • Latest release: Apr 20, 2020
  • Number of updates: 14
  • Update frequency: every 83.6 days
  • Top authors: ENDif Media (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.63ms] Passed 4 tests

An overview of server-side resources used by UserDocs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1841.71 ▲2.88
Dashboard /wp-admin3.47 ▲0.1750.75 ▲3.10
Posts /wp-admin/edit.php3.59 ▲0.2352.31 ▼1.04
Add New Post /wp-admin/post-new.php6.05 ▲0.1688.24 ▼11.05
Media Library /wp-admin/upload.php3.39 ▲0.1638.49 ▲2.68
Topics /wp-admin/edit-tags.php?taxonomy=userdocs_taxonomy&post_type=userdocs3.3940.60
All UserDocs /wp-admin/edit.php?post_type=userdocs3.4439.16
Add New /wp-admin/post-new.php?post_type=userdocs3.5251.71

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by UserDocs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.37 ▲0.021.62 ▲0.1141.06 ▼4.36
Dashboard /wp-admin2,220 ▲435.56 ▼0.0487.69 ▼1.5141.44 ▼6.13
Posts /wp-admin/edit.php2,134 ▲342.02 ▲0.0040.42 ▲4.7435.71 ▼2.44
Add New Post /wp-admin/post-new.php1,552 ▲2423.57 ▲0.55682.47 ▲7.8655.51 ▲0.26
Media Library /wp-admin/upload.php1,431 ▲314.18 ▼0.05103.12 ▼7.2644.03 ▲2.07
Topics /wp-admin/edit-tags.php?taxonomy=userdocs_taxonomy&post_type=userdocs1,2802.1232.1231.63
All UserDocs /wp-admin/edit.php?post_type=userdocs1,1091.9829.1731.45
Add New /wp-admin/post-new.php?post_type=userdocs2,2327.54169.4063.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine on the user side

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
7 plugin tags: user documentation, help, versioning, project management, helpdesk...

userdocs/userdocs.php Passed 13 tests

"UserDocs" version 0.9.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
The best documentation plugin for WordPress. To use: add shortcode [userdocs] in a sidebar widget.

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
There were no executable files found in this plugin684 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11187645598
CSS210476
SVG11010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity11.38
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected