84% accessible-external-text-links

Code Review | Accessible External Text Links

WordPress plugin Accessible External Text Links scored84%from 54 tests.

About plugin

  • Plugin page: accessible-extern...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2012
  • Latest release: Feb 22, 2023
  • Number of updates: 47
  • Update frequency: every 86.1 days
  • Top authors: Myshock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Accessible External Text Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.88 ▼3.24
Dashboard /wp-admin3.32 ▲0.0251.25 ▲0.14
Posts /wp-admin/edit.php3.38 ▲0.0156.01 ▲0.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0195.24 ▼8.20
Media Library /wp-admin/upload.php3.25 ▲0.0140.43 ▲3.82
Accessible Links /wp-admin/options-general.php?page=my-unique-identifier3.2037.04

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: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
jmd_external_links_alternative

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accessible External Text Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.26 ▼0.122.48 ▲0.8040.70 ▼0.93
Dashboard /wp-admin2,202 ▲255.63 ▲0.0693.19 ▲0.7342.90 ▼4.78
Posts /wp-admin/edit.php2,107 ▲42.02 ▲0.0340.40 ▼1.2836.75 ▼4.14
Add New Post /wp-admin/post-new.php1,407 ▼11918.00 ▼5.15554.25 ▼112.5049.13 ▼7.11
Media Library /wp-admin/upload.php1,401 ▲44.20 ▼0.02104.51 ▲0.2744.62 ▼2.60
Accessible Links /wp-admin/options-general.php?page=my-unique-identifier7972.0029.1526.91

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 detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessible-external-text-links/accessible-external-text-links.php:22

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: links, accessibility

accessible-external-text-links/accessible-external-text-links.php 92% from 13 tests

This is the main PHP file of "Accessible External Text Links" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 233 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin134 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3192772
PO File16636
JavaScript15426

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin