84% zedna-301-redirects

Code Review | Zedna 301 Redirects

WordPress plugin Zedna 301 Redirects scored84%from 54 tests.

About plugin

  • Plugin page: zedna-301-redirects
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.6
  • WordPress version: 6.3.1
  • First release: Jan 23, 2021
  • Latest release: Jan 23, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: zedna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.06ms] Passed 4 tests

A check of server-side resources used by Zedna 301 Redirects
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.88 ▼0.54
Dashboard /wp-admin3.34 ▲0.0447.63 ▲1.09
Posts /wp-admin/edit.php3.39 ▲0.0446.85 ▼2.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.70 ▼17.12
Media Library /wp-admin/upload.php3.27 ▲0.0433.26 ▲0.39
301 Redirects /wp-admin/options-general.php?page=301options3.2332.15

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Zedna 301 Redirects
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.421.63 ▼0.1541.48 ▲2.96
Dashboard /wp-admin2,210 ▲194.84 ▼1.06106.52 ▲7.8640.54 ▼3.67
Posts /wp-admin/edit.php2,096 ▲42.03 ▼0.0138.84 ▼1.3534.51 ▼1.82
Add New Post /wp-admin/post-new.php1,517 ▼1217.92 ▼0.12613.91 ▼7.4556.20 ▲0.24
Media Library /wp-admin/upload.php1,392 ▲104.15 ▲0.0195.04 ▼3.2539.85 ▼5.83
301 Redirects /wp-admin/options-general.php?page=301options9581.6925.0937.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zedna-301-redirects/zedna-301-redirects.php:371

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: 301, utm tag, redirect, url

zedna-301-redirects/zedna-301-redirects.php 92% from 13 tests

The main PHP file in "Zedna 301 Redirects" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)

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
Good job! No executable or dangerous file extensions detected271 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15990271

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin