84% taro-external-permalink

Code Review | Taro External Permalink

WordPress plugin Taro External Permalink scored84%from 54 tests.

About plugin

  • Plugin page: taro-external-per...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Oct 20, 2021
  • Latest release: Nov 10, 2021
  • Number of updates: 4
  • Update frequency: every 5.3 days
  • Top authors: Tarosky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.86ms] Passed 4 tests

A check of server-side resources used by Taro External Permalink
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.32 ▼4.70
Dashboard /wp-admin3.38 ▲0.0748.44 ▲0.34
Posts /wp-admin/edit.php3.49 ▲0.1448.36 ▲2.04
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.78 ▼5.12
Media Library /wp-admin/upload.php3.30 ▲0.0737.71 ▲6.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Taro External Permalink
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.101.67 ▼0.3137.94 ▼7.10
Dashboard /wp-admin2,206 ▲185.79 ▼0.1199.12 ▼9.1039.27 ▼7.27
Posts /wp-admin/edit.php2,089 ▲182.05 ▲0.0034.39 ▼3.1534.69 ▲2.16
Add New Post /wp-admin/post-new.php1,533 ▼023.32 ▲0.19579.02 ▼88.4649.97 ▼14.34
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.2194.90 ▲0.7341.93 ▼0.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× 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/taro-external-permalink/includes/settings.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taro-external-permalink/includes/editor.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/taro-external-permalink/includes/templates.php:71

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: url, posts, permalink, news, notification

taro-external-permalink/taro-external-permalink.php 85% from 13 tests

"Taro External Permalink" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected413 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP420142298
JSON20077
JavaScript4111538

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions25
▷ Named functions1144.00%
▷ Anonymous functions1456.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 are no PNG files in this plugin