89% metaredirect

Code Review | MetaRedirect

WordPress plugin MetaRedirectscored89%from 54 tests.

About plugin

  • Plugin page: metaredirect
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.6
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Dec 27, 2020
  • Number of updates: 5
  • Update frequency: every 232.2 days
  • Top authors: codecide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.70ms] Passed 4 tests

Analyzing server-side resources used by MetaRedirect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.89 ▲8.60
Dashboard /wp-admin3.36 ▲0.0548.57 ▼4.46
Posts /wp-admin/edit.php3.41 ▲0.0556.38 ▲7.02
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.74 ▼1.06
Media Library /wp-admin/upload.php3.28 ▲0.0536.88 ▲1.32

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for MetaRedirect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.35 ▼0.082.06 ▲0.3243.45 ▲2.91
Dashboard /wp-admin2,216 ▲395.58 ▼0.2690.51 ▲3.3240.22 ▼1.20
Posts /wp-admin/edit.php2,118 ▲182.00 ▲0.0140.53 ▲1.2336.29 ▼6.23
Add New Post /wp-admin/post-new.php1,541 ▲1523.46 ▲0.41667.27 ▲6.7759.09 ▼16.68
Media Library /wp-admin/upload.php1,421 ▲184.18 ▼0.1799.58 ▼9.3744.67 ▼1.30

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === MetaRedirect=== )
The official readme.txt is a good inspiration

metaredirect/metaredirect.php 92% from 13 tests

"MetaRedirect" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected261 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22648206
JavaScript11155
CSS1010

PHP code Passed 2 tests

A short 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.50
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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