83% wpsitesync-for-http-authentication

Code Review | WPSiteSync for HTTP Authentication

WordPress plugin WPSiteSync for HTTP Authentication scored83%from 54 tests.

About plugin

  • Plugin page: wpsitesync-for-ht...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3
  • WordPress version: 6.3.1
  • First release: May 6, 2017
  • Latest release: Jun 12, 2020
  • Number of updates: 5
  • Update frequency: every 226.6 days
  • Top authors: davejesch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WPSiteSync for HTTP Authentication
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.31 ▼2.63
Dashboard /wp-admin3.31 ▼0.0450.75 ▼15.14
Posts /wp-admin/edit.php3.36 ▲0.0052.71 ▲3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.13 ▼13.54
Media Library /wp-admin/upload.php3.23 ▲0.0039.70 ▲2.00

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WPSiteSync for HTTP Authentication
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.121.59 ▼0.4243.72 ▼0.71
Dashboard /wp-admin2,203 ▲185.83 ▲0.78105.20 ▼8.4840.56 ▼0.99
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0536.26 ▼1.8136.09 ▲1.68
Add New Post /wp-admin/post-new.php1,514 ▼817.60 ▼5.47670.45 ▲15.6060.91 ▲9.97
Media Library /wp-admin/upload.php1,388 ▲34.32 ▲0.09100.73 ▼1.2845.57 ▼1.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpsitesync-for-http-authentication/wpsitesync-httpauth.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Plugin page.) image missing
The official readme.txt is a good inspiration

wpsitesync-for-http-authentication/wpsitesync-httpauth.php 85% from 13 tests

This is the main PHP file of "WPSiteSync for HTTP Authentication" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpsitesync-for-http-authentication.php" instead of "wpsitesync-httpauth.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin114 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32146112
Markdown1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin