84% redirect-countdown

Code Review | Redirect countdown

WordPress plugin Redirect countdown scored84%from 54 tests.

About plugin

  • Plugin page: redirect-countdown
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2023
  • Latest release: Apr 5, 2023
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: haghs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /389 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.87ms] Passed 4 tests

This is a short check of server-side resources used by Redirect countdown
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.53 ▼4.16
Dashboard /wp-admin3.31 ▲0.0149.73 ▼2.50
Posts /wp-admin/edit.php3.36 ▲0.0047.66 ▼8.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.41 ▼20.78
Media Library /wp-admin/upload.php3.23 ▲0.0039.47 ▲3.71

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Redirect countdown
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.30 ▼0.081.74 ▼0.1039.93 ▼6.12
Dashboard /wp-admin2,211 ▲345.58 ▼0.0785.90 ▼8.6238.00 ▼6.97
Posts /wp-admin/edit.php2,116 ▲162.05 ▲0.0235.34 ▼2.4433.68 ▼2.83
Add New Post /wp-admin/post-new.php1,544 ▲1822.83 ▲5.32665.94 ▲0.0054.74 ▼3.77
Media Library /wp-admin/upload.php1,419 ▲164.19 ▼0.0599.19 ▼0.5047.16 ▲0.04

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 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/redirect-countdown/redirectcountdown.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: redirect countdown

redirect-countdown/redirectcountdown.php 92% from 13 tests

"Redirect countdown" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("redirect-countdown.php" instead of "redirectcountdown.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101157

PHP code Passed 2 tests

This is a very shot 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.13
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%
Functions3
▷ Named functions3100.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