84% show-external-links

Code Review | Show External Links

WordPress plugin Show External Links scored84%from 54 tests.

About plugin

  • Plugin page: show-external-links
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.0
  • WordPress version: 6.3.1
  • First release: Jan 28, 2019
  • Latest release: Jan 28, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: webaction (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,146 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.07MB] [CPU: ▼6.55ms] Passed 4 tests

An overview of server-side resources used by Show External Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1134.86 ▼5.07
Dashboard /wp-admin3.39 ▲0.0443.06 ▼17.84
Posts /wp-admin/edit.php3.50 ▲0.1446.12 ▼2.19
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.23 ▼1.10
Media Library /wp-admin/upload.php3.31 ▲0.0834.31 ▲1.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Show External Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.57 ▼0.872.02 ▲0.1264.35 ▲20.23
Dashboard /wp-admin2,222 ▲345.89 ▲1.04106.72 ▼12.6642.67 ▼5.16
Posts /wp-admin/edit.php2,102 ▲132.06 ▲0.0539.49 ▲1.9135.11 ▼0.79
Add New Post /wp-admin/post-new.php1,549 ▲1623.48 ▲0.40624.62 ▼8.5352.10 ▲1.60
Media Library /wp-admin/upload.php1,404 ▲194.22 ▲0.0396.08 ▼5.0842.25 ▼3.88

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/show-external-links/public/partials/show-external-links-public-popup.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/show-external-links/admin/partials/show-external-links-admin-form.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: links, external

show-external-links/show-external-links.php Passed 13 tests

The main file in "Show External Links" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
With the plugin Show External Links easy to find all the external links on the pages of the site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected606 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14116468320
CSS23529240
PO File1111640
JavaScript24546

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.44
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2367.65%
▷ Protected methods00.00%
▷ Private methods1132.35%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin