79% change-wp-cron-request-url

Code Review | Change WP Cron Request URL

WordPress plugin Change WP Cron Request URL scored79%from 54 tests.

About plugin

  • Plugin page: change-wp-cron-re...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.5
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Aug 27, 2020
  • Number of updates: 6
  • Update frequency: every 111.8 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,162 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Change WP Cron Request URL
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.61 ▼0.43
Dashboard /wp-admin3.32 ▼0.0251.09 ▼19.94
Posts /wp-admin/edit.php3.38 ▲0.0249.51 ▲2.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.09 ▼11.07
Media Library /wp-admin/upload.php3.25 ▲0.0237.38 ▼1.87
Change WP Cron Request URL /wp-admin/options-general.php?page=change-wp-cron3.2133.39

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
change_wp_cron_port
theysaidso_admin_options
widget_recent-comments
change_wp_cron_domain
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Change WP Cron Request URL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.20 ▼0.071.81 ▲0.0145.00 ▲1.45
Dashboard /wp-admin2,202 ▲255.65 ▲0.0291.03 ▼9.4938.25 ▼4.78
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0233.99 ▼2.5039.33 ▲2.23
Add New Post /wp-admin/post-new.php1,548 ▲2223.39 ▲5.90677.56 ▲31.0361.04 ▲8.11
Media Library /wp-admin/upload.php1,407 ▲104.23 ▼0.0498.57 ▼2.9551.16 ▲6.62
Change WP Cron Request URL /wp-admin/options-general.php?page=change-wp-cron8232.0227.8227.45

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'Cwc\\Classes\\Field_Validator_Interface' not found in wp-content/plugins/change-wp-cron-request-url/classes/class-port-validator.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Cwc\\Classes\\Field_Validator_Interface' not found in wp-content/plugins/change-wp-cron-request-url/classes/class-domain-validator.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/change-wp-cron-request-url/admin/admin.php:86

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=change-wp-cron
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=change-wp-cron 143 The specified value "\u003C? echo esc_attr( get_option( $field['id'] ) ); ?\u003E" cannot be parsed, or is out of range.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: wp-cron, cron

change-wp-cron-request-url/change-wp-cron-request-url.php Passed 13 tests

The primary PHP file in "Change WP Cron Request URL" version 1.0.2 is used by WordPress to initiate all plugin functionality
45 characters long description:
Change the request url when wp-cron executed.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin201 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54837200
Markdown1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.40
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
PNG images were not found in this plugin