10% htauth-sync

Code Review | HTAuth Sync

WordPress plugin HTAuth Sync scored10%from 54 tests.

About plugin

  • Plugin page: htauth-sync
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Jan 25, 2013
  • Latest release: Jan 7, 2014
  • Number of updates: 4
  • Update frequency: every 86.8 days
  • Top authors: johnl1479 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,087 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/htauth-sync/htauthsync.php+70
    array_merge(): Expected parameter 2 to be an array, bool given

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.07ms] Passed 4 tests

Server-side resources used by HTAuth Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.49 ▼2.25
Dashboard /wp-admin3.32 ▲0.0147.67 ▼1.28
Posts /wp-admin/edit.php3.37 ▲0.0146.84 ▼6.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.34 ▼14.65
Media Library /wp-admin/upload.php3.24 ▲0.0137.60 ▲3.51
HTAuth Sync /wp-admin/options-general.php?page=htauth-sync/htauthsync.php3.2127.59

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
htauth-sync-options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for HTAuth Sync
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.19 ▼1.441.70 ▼0.1045.23 ▼1.56
Dashboard /wp-admin2,210 ▲224.88 ▼0.01108.47 ▼8.9443.40 ▼0.98
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0339.68 ▲3.5033.88 ▼2.17
Add New Post /wp-admin/post-new.php1,536 ▲1723.18 ▲0.10678.42 ▲14.3147.29 ▼3.64
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.08100.70 ▼8.6242.72 ▼3.08
HTAuth Sync /wp-admin/options-general.php?page=htauth-sync/htauthsync.php8722.0224.1327.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/htauth-sync/htauthsync.php:429

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
6 plugin tags: htaccess, htauth, htusers, htdigest, authentication...

htauth-sync/htauthsync.php 92% from 13 tests

The main PHP script in "HTAuth Sync" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("htauth-sync.php" instead of "htauthsync.php")

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
There were no executable files found in this plugin253 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP173120246
CSS1107

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods1168.75%
▷ Protected methods00.00%
▷ Private methods531.25%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin