83% delay-redirect

Code Review | Delay Redirect

WordPress plugin Delay Redirect scored83%from 54 tests.

About plugin

  • Plugin page: delay-redirect
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 25, 2017
  • Latest release: Apr 25, 2017
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: havengr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,571 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Delay Redirect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.29 ▼8.57
Dashboard /wp-admin3.31 ▲0.0146.11 ▼3.20
Posts /wp-admin/edit.php3.36 ▲0.0057.78 ▲8.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.00 ▼3.86
Media Library /wp-admin/upload.php3.23 ▲0.0034.39 ▲3.47

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Delay Redirect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.82 ▼0.0940.71 ▼6.40
Dashboard /wp-admin2,209 ▲214.86 ▼0.0198.05 ▼9.7937.46 ▼8.30
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0139.83 ▲0.1134.26 ▲2.93
Add New Post /wp-admin/post-new.php6,303 ▲4,78925.49 ▲1.84940.55 ▲300.3763.93 ▲2.07
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0194.05 ▼4.1540.30 ▼5.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% 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 everything seems fine, this is not 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delay-redirect/delay.php:26

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

delay-redirect/delay.php 85% from 13 tests

The primary PHP file in "Delay Redirect" version 1... is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("delay-redirect.php" instead of "delay.php")
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")

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
No dangerous file extensions were detected92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1893592

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin