90% post-internal-link-removal

Code Review | Post Internal Link Removal

WordPress plugin Post Internal Link Removal scored90%from 54 tests.

About plugin

  • Plugin page: post-internal-lin...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2016
  • Latest release: Jun 19, 2019
  • Number of updates: 29
  • Update frequency: every 33.3 days
  • Top authors: rsoftsolution (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.04ms] Passed 4 tests

An overview of server-side resources used by Post Internal Link Removal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.04 ▼0.07
Dashboard /wp-admin3.34 ▲0.0348.13 ▲0.55
Posts /wp-admin/edit.php3.39 ▲0.0350.96 ▼1.95
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.13 ▼9.57
Media Library /wp-admin/upload.php3.26 ▲0.0337.02 ▼0.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables
wp_linkremoved
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Internal Link Removal
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.26 ▼0.111.83 ▲0.1740.71 ▼3.13
Dashboard /wp-admin2,211 ▲345.64 ▼0.0591.49 ▼9.0343.38 ▼2.05
Posts /wp-admin/edit.php2,116 ▲162.05 ▲0.0140.40 ▼0.6439.27 ▲2.19
Add New Post /wp-admin/post-new.php1,539 ▲817.42 ▼5.89679.70 ▼17.0153.87 ▼5.26
Media Library /wp-admin/upload.php1,416 ▲194.24 ▲0.06110.39 ▲6.1651.07 ▲5.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: post link remove, replace post internal link, bulk post internal link removal, post internal link removal, remove post internal link...

post-internal-link-removal/rsslinkremove.php 92% from 13 tests

The main PHP file in "Post Internal Link Removal" ver. 3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("post-internal-link-removal.php" instead of "rsslinkremove.php")

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 detected201 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18310201

PHP code Passed 2 tests

Analyzing 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.38
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin