90% delay-redirects

Code Review | Delay Redirects

WordPress plugin Delay Redirects scored 90% from 54 tests.

About plugin

  • Plugin page: delay-redirects
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 6.3.1
  • First release: Jan 14, 2020
  • Latest release: Jan 14, 2020
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: jagdish1o1 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 5,118 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.74ms] Passed 4 tests

This is a short check of server-side resources used by Delay Redirects
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.20 ▼4.41
Dashboard /wp-admin3.33 ▲0.0343.83 ▼4.54
Posts /wp-admin/edit.php3.38 ▲0.0346.04 ▼0.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.14 ▼5.22
Media Library /wp-admin/upload.php3.25 ▲0.0335.70 ▲3.43

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Delay Redirects
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9114.79 ▲0.441.82 ▲0.0039.06 ▼7.87
Dashboard /wp-admin2,206 ▲214.85 ▼0.08113.30 ▲6.5840.94 ▼4.95
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.47 ▲2.5335.31 ▲3.50
Add New Post /wp-admin/post-new.php1,514 ▼2017.87 ▼5.22658.49 ▲33.7052.81 ▼2.35
Media Library /wp-admin/upload.php1,385 ▲34.22 ▼0.04103.17 ▲4.3844.84 ▲3.33

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: seo, redirect

delay-redirects/delay-redirect.php 92% from 13 tests

Analyzing the main PHP file in "Delay Redirects" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("delay-redirects.php" instead of "delay-redirect.php")

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 plugin111 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12434111

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected