94% simple-301-article-redirect

Code Review | Simple 301 Article Redirect

WordPress plugin Simple 301 Article Redirect scored 94% from 54 tests.

About plugin

  • Plugin page: simple-301-articl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4
  • WordPress version: 5.8.1
  • First release: Apr 22, 2020
  • Latest release: Apr 22, 2020
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: brantell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 261 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼150.94ms] Passed 4 tests

An overview of server-side resources used by Simple 301 Article Redirect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1437.12 ▲9.51
Dashboard /wp-admin3.09 ▲0.0345.91 ▲2.29
Posts /wp-admin/edit.php3.14 ▲0.0345.99 ▼0.09
Add New Post /wp-admin/post-new.php4.07 ▼1.3641.06 ▼600.41
Media Library /wp-admin/upload.php3.03 ▲0.0232.56 ▼5.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Simple 301 Article Redirect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.91 ▲0.427.76 ▼1.1347.58 ▼5.29
Dashboard /wp-admin2,973 ▲425.88 ▼0.03132.29 ▼27.21104.81 ▼7.50
Posts /wp-admin/edit.php2,785 ▲462.68 ▼0.0163.06 ▼5.5996.34 ▲6.06
Add New Post /wp-admin/post-new.php1,913 ▲41318.90 ▲0.08367.32 ▼1.10123.89 ▲13.64
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.01149.06 ▲9.03120.77 ▼2.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-301-article-redirect/simple-301-article-redirect.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: 301 redirection, redirection, 301 redirect, article redirect, simple article redirection

simple-301-article-redirect/simple-301-article-redirect.php Passed 13 tests

This is the main PHP file of "Simple 301 Article Redirect" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
A Very Simple 301 Article Redirection.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected126 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1157126

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions10
▷ Named functions10100.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
There were not PNG files found in your plugin