90% wp-cron-http-auth

Code Review | WP Cron HTTP Auth

WordPress plugin WP Cron HTTP Auth scored90%from 54 tests.

About plugin

  • Plugin page: wp-cron-http-auth
  • Plugin version: 2.8
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2018
  • Latest release: Oct 26, 2023
  • Number of updates: 23
  • Update frequency: every 86.4 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

800+ active /18,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.93ms] Passed 4 tests

Analyzing server-side resources used by WP Cron HTTP Auth
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0737.77 ▼2.33
Dashboard /wp-admin3.39 ▲0.0446.81 ▼14.48
Posts /wp-admin/edit.php3.51 ▲0.1550.94 ▲6.88
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.57 ▼9.57
Media Library /wp-admin/upload.php3.32 ▲0.0839.50 ▼1.32
WP Cron HTTP Auth /wp-admin/options-general.php?page=wp-cron-http-auth3.2832.95

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

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

Browser metrics Passed 4 tests

WP Cron HTTP Auth: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.291.83 ▲0.1344.28 ▲1.89
Dashboard /wp-admin2,199 ▲195.61 ▼0.0689.87 ▲0.1240.80 ▼0.05
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.1039.63 ▲2.7336.73 ▲0.92
Add New Post /wp-admin/post-new.php1,538 ▲1218.09 ▼5.07597.27 ▼94.6174.95 ▲23.61
Media Library /wp-admin/upload.php1,407 ▲134.14 ▼0.05102.72 ▲2.8242.90 ▼2.59
WP Cron HTTP Auth /wp-admin/options-general.php?page=wp-cron-http-auth8142.0324.3829.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output 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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: cron, http auth, wp cron, auth, http

wp-cron-http-auth/wp-cron-http-auth.php Passed 13 tests

The primary PHP file in "WP Cron HTTP Auth" version 2.8 is used by WordPress to initiate all plugin functionality
49 characters long description:
Enable WP Cron on sites using HTTP Authentication

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
Success! There were no dangerous files found in this plugin194 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP214630194

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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