68% redirection-reporting

Code Review | Redirection Reporting

WordPress plugin Redirection Reporting scored68%from 54 tests.

About plugin

  • Plugin page: redirection-repor...
  • Plugin version: 3.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2013
  • Latest release: Aug 5, 2023
  • Number of updates: 51
  • Update frequency: every 71.2 days
  • Top authors: mrdenny (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,103 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.21ms] Passed 4 tests

This is a short check of server-side resources used by Redirection Reporting
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1837.03 ▼6.45
Dashboard /wp-admin3.49 ▲0.1944.10 ▼5.39
Posts /wp-admin/edit.php3.61 ▲0.2547.22 ▲2.84
Add New Post /wp-admin/post-new.php6.07 ▲0.1885.25 ▼3.84
Media Library /wp-admin/upload.php3.42 ▲0.1836.72 ▲3.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 7 new options
New tables
wp_redirection_logs_archive
New WordPress options
widget_recent-posts
redirection_reporting
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Redirection Reporting: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.53 ▼0.841.89 ▼0.1541.64 ▼9.15
Dashboard /wp-admin2,214 ▲255.79 ▲0.8197.11 ▼27.5637.60 ▼9.07
Posts /wp-admin/edit.php2,100 ▲112.02 ▼0.0037.16 ▲1.6636.50 ▲3.25
Add New Post /wp-admin/post-new.php1,591 ▲5721.62 ▼1.61664.71 ▼32.6237.86 ▼20.55
Media Library /wp-admin/upload.php1,399 ▲144.29 ▲0.0794.92 ▼18.6741.81 ▼4.99
Redirection Reporting /wp-admin/redirection.php.reporting.settings260.440.0912.45
Redirection Reporting /wp-admin/redirection.php.reporting260.440.096.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_redirection_logs_archive
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/redirection-reporting/redirection-reporting.php:97

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/redirection.php.reporting.settings
    • > Network (severe)
    wp-admin/redirection.php.reporting.settings - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/redirection.php.reporting
    • > Network (severe)
    wp-admin/redirection.php.reporting - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: redirection, reporting

redirection-reporting/redirection-reporting.php 92% from 13 tests

The main PHP script in "Redirection Reporting" version 3.0.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 277 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected902 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP524027902

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity30.20
▷ Minimum class complexity3.00
▷ Maximum class complexity86.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods12.08%
▷ Public methods48100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
info.png2.86KB2.14KB▼ 24.92%