84% external-permalinks-redux

Code Review | External Permalinks Redux

WordPress plugin External Permalinks Redux scored84%from 54 tests.

About plugin

  • Plugin page: external-permalin...
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 14, 2011
  • Latest release: Jul 1, 2022
  • Number of updates: 38
  • Update frequency: every 112.0 days
  • Top authors: ethitter (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /17,312 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.06MB] [CPU: ▼8.78ms] Passed 4 tests

A check of server-side resources used by External Permalinks Redux
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.56 ▼1.16
Dashboard /wp-admin3.37 ▲0.0249.54 ▼13.01
Posts /wp-admin/edit.php3.48 ▲0.1346.36 ▼6.78
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.74 ▼14.11
Media Library /wp-admin/upload.php3.29 ▲0.0635.47 ▼1.22

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for External Permalinks Redux
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.081.81 ▲0.0648.29 ▲5.70
Dashboard /wp-admin2,195 ▲155.59 ▲0.0287.35 ▼5.3440.27 ▼1.69
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0436.90 ▼3.8836.74 ▲0.73
Add New Post /wp-admin/post-new.php1,538 ▼217.73 ▼0.31690.25 ▲74.1355.81 ▼11.75
Media Library /wp-admin/upload.php1,403 ▲64.32 ▲0.1298.15 ▼4.5544.06 ▼2.42

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/external-permalinks-redux/external-permalinks-redux.php:149

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
4 plugin tags: permalink, redirect, link, external link

external-permalinks-redux/external-permalinks-redux.php 92% from 13 tests

"External Permalinks Redux" version 1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 274 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 detected302 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP381196301
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.00
▷ Minimum class complexity9.00
▷ Maximum class complexity29.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods1777.27%
▷ Protected methods313.64%
▷ Private methods29.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-1.png59.78KB13.54KB▼ 77.34%
.wordpress-org/screenshot-2.png35.77KB11.34KB▼ 68.31%