89% external-link-redirection

Code Review | External Link Redirection

WordPress plugin External Link Redirection scored 89% from 54 tests.

About plugin

  • Plugin page: external-link-red...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9.2
  • WordPress version: 6.3.1
  • First release: May 28, 2022
  • Latest release: Jun 4, 2022
  • Number of updates: 6
  • Update frequency: every 2.3 days
  • Top authors: engasm89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼17.60ms] Passed 4 tests

Server-side resources used by External Link Redirection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0532.52 ▼5.97
Dashboard /wp-admin3.39 ▲0.0947.12 ▲2.16
Posts /wp-admin/edit.php3.44 ▲0.0947.24 ▼0.02
Add New Post /wp-admin/post-new.php3.23 ▼2.6637.88 ▼62.16
Media Library /wp-admin/upload.php3.32 ▲0.0934.33 ▼2.26

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

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

Browser metrics Passed 4 tests

A check of browser resources used by External Link Redirection
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.80 ▲0.421.67 ▼0.0641.27 ▼5.74
Dashboard /wp-admin2,225 ▲404.86 ▼0.0296.62 ▼12.7839.24 ▼0.75
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0435.44 ▲0.9233.73 ▼1.42
Add New Post /wp-admin/post-new.php1,547 ▲1423.42 ▲0.50616.99 ▼32.3952.50 ▼10.70
Media Library /wp-admin/upload.php1,404 ▲164.23 ▲0.14101.31 ▼14.0344.58 ▼4.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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

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 shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (https://pasteboard.co/BnqPCbT1bF9r.png), #2 (https://pasteboard.co/cpkH9Udl6kvf.png), #3 (https://pasteboard.co/0z3w9qkfPggU.png), #4 (https://pasteboard.co/xkFnlviMFITX.png)
You can look at the official readme.txt

external-link-redirection/external-link-redirection.php 92% from 13 tests

"External Link Redirection" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.2" instead of "4.4")

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
Success! There were no dangerous files found in this plugin418 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP140313418

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin