84% doccheck-login

Code Review | DocCheck Login

WordPress plugin DocCheck Login scored84%from 54 tests.

About plugin

  • Plugin page: doccheck-login
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2017
  • Latest release: May 26, 2023
  • Number of updates: 52
  • Update frequency: every 40.3 days
  • Top authors: antwerpes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,803 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.39ms] Passed 4 tests

This is a short check of server-side resources used by DocCheck Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.86 ▼6.75
Dashboard /wp-admin3.41 ▲0.1150.31 ▼1.54
Posts /wp-admin/edit.php3.53 ▲0.1751.50 ▼0.27
Add New Post /wp-admin/post-new.php6.04 ▲0.1694.25 ▼9.00
Media Library /wp-admin/upload.php3.34 ▲0.1140.10 ▲2.63
DocCheck Login /wp-admin/options-general.php?page=dc-login3.3139.64

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
dcl_general_redirect_page_id
widget_theysaidso_widget
dcl_general_login_page_id
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for DocCheck Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1314.37 ▲0.011.66 ▼1.0543.11 ▼1.25
Dashboard /wp-admin2,208 ▲315.67 ▲0.1186.77 ▼5.9440.44 ▲0.84
Posts /wp-admin/edit.php2,120 ▲202.01 ▼0.0335.45 ▼2.2332.02 ▼2.41
Add New Post /wp-admin/post-new.php6,245 ▲4,71726.15 ▲3.17921.86 ▲258.4152.41 ▼2.97
Media Library /wp-admin/upload.php1,413 ▲134.23 ▼0.0295.66 ▼25.3841.21 ▼9.87
DocCheck Login /wp-admin/options-general.php?page=dc-login1,8372.2027.0032.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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 50% from 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
Please take a closer look at the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'DCL\\Includes\\DCL_Base' not found in wp-content/plugins/doccheck-login/admin/class-dcl-admin.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'DCL\\Client\\DCL_Client' not found in wp-content/plugins/doccheck-login/client/class-dcl-shortcodes.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'DCL\\Client\\DCL_Client' not found in wp-content/plugins/doccheck-login/client/class-dcl-cache-helper.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DCL\\Admin\\DCL_Admin' not found in wp-content/plugins/doccheck-login/admin/class-dcl-metaboxes.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'DCL\\Admin\\DCL_Admin' not found in wp-content/plugins/doccheck-login/admin/class-dcl-columns.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'DCL\\Includes\\DCL_Base' not found in wp-content/plugins/doccheck-login/client/class-dcl-client.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'DCL\\Admin\\DCL_Admin' not found in wp-content/plugins/doccheck-login/admin/class-dcl-settings.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: medical, login, doccheck, hwg, healthcare...

doccheck-login/dc-login.php 85% from 13 tests

"DocCheck Login" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("doccheck-login.php" instead of "dc-login.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)

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
Everything looks great! No dangerous files found in this plugin2,293 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP175211,1552,145
PO File14853146
CSS1281
JavaScript1111

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.77
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods88
▷ Static methods22.27%
▷ Public methods7079.55%
▷ Protected methods00.00%
▷ Private methods1820.45%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants114.29%
▷ Class constants685.71%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/chosen-sprite@2x.png0.72KB0.83KB0.00%
admin/css/chosen-sprite.png0.53KB0.88KB0.00%