90% simpler-redirects

Code Review | Simpler Redirects

WordPress plugin Simpler Redirects scored90%from 54 tests.

About plugin

  • Plugin page: simpler-redirects
  • Plugin version: 0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Jan 18, 2023
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: spacecodes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /132 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
Install script ran successfully

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

Analyzing server-side resources used by Simpler Redirects
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.20 ▼1.80
Dashboard /wp-admin3.33 ▲0.0348.11 ▲1.50
Posts /wp-admin/edit.php3.38 ▲0.0345.44 ▼5.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.26 ▼17.21
Media Library /wp-admin/upload.php3.26 ▲0.0335.93 ▼1.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Simpler Redirects: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.26 ▼1.141.77 ▼0.0744.18 ▲2.12
Dashboard /wp-admin2,217 ▲295.86 ▲0.98103.40 ▲1.2238.65 ▼5.34
Posts /wp-admin/edit.php2,103 ▲141.99 ▼0.0439.70 ▼2.7934.57 ▼0.00
Add New Post /wp-admin/post-new.php1,540 ▲723.37 ▲0.30658.24 ▼15.7956.42 ▲3.92
Media Library /wp-admin/upload.php1,402 ▲144.14 ▲0.0197.51 ▼1.9441.10 ▼5.03

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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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
No browser errors were detected

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
3 plugin tags: redirects, url redirects, redirect plugin

simpler-redirects/simpler-redirects.php Passed 13 tests

The main PHP script in "Simpler Redirects" version 0.3 is automatically included on every request by WordPress
130 characters long description:
This plugin allows you to specify redirections from one URL to another. You can customize how many redirections you want to enter.

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
Good job! No executable or dangerous file extensions detected224 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39188224

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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