84% redirect-single-article-tags

Code Review | Redirect Single Article Tags

WordPress plugin Redirect Single Article Tags scored84%from 54 tests.

About plugin

  • Plugin page: redirect-single-a...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.5
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Apr 15, 2016
  • Number of updates: 5
  • Update frequency: every 9.0 days
  • Top authors: morbz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /833 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.58ms] Passed 4 tests

This is a short check of server-side resources used by Redirect Single Article Tags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.88 ▼5.21
Dashboard /wp-admin3.32 ▲0.0151.04 ▼7.14
Posts /wp-admin/edit.php3.37 ▲0.0149.39 ▲2.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.59 ▼21.51
Media Library /wp-admin/upload.php3.24 ▲0.0136.68 ▼0.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Redirect Single Article Tags
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.20 ▼0.801.82 ▼0.2441.58 ▼2.43
Dashboard /wp-admin2,209 ▲185.86 ▲0.90100.40 ▼6.7340.39 ▼6.68
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0134.88 ▼4.7834.82 ▼2.27
Add New Post /wp-admin/post-new.php1,533 ▲423.35 ▲5.10664.19 ▼25.9960.15 ▼6.11
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.01101.42 ▲3.1646.36 ▲0.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/redirect-single-article-tags/redirect-single-article-tags.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: article, tags, redirect, links, seo

redirect-single-article-tags/redirect-single-article-tags.php Passed 13 tests

"Redirect Single Article Tags" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
134 characters long description:
When tags only have one article associated with it, this plugin will redirect links to the associated article instead of the tag page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151534

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin