84% esb-url-extension

Code Review | ESB URL Extension

WordPress plugin ESB URL Extension scored84%from 54 tests.

About plugin

  • Plugin page: esb-url-extension
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Dec 15, 2014
  • Latest release: Dec 24, 2014
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: esparkbiz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /3,208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.88ms] Passed 4 tests

Server-side resources used by ESB URL Extension
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0651.00 ▲7.06
Dashboard /wp-admin3.41 ▲0.0256.32 ▼7.58
Posts /wp-admin/edit.php3.51 ▲0.1058.19 ▲3.92
Add New Post /wp-admin/post-new.php5.99 ▲0.0696.16 ▼5.58
Media Library /wp-admin/upload.php3.33 ▲0.0644.72 ▲5.72
Extension Settings /wp-admin/options-general.php?page=esb-eu-settings3.3042.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ESB URL Extension
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.25 ▼0.032.17 ▲0.4245.34 ▲2.47
Dashboard /wp-admin2,201 ▲245.64 ▲0.1090.80 ▼6.4840.90 ▲0.82
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0036.25 ▼4.8236.20 ▼4.82
Add New Post /wp-admin/post-new.php1,531 ▲321.21 ▼1.81639.31 ▲11.1259.45 ▼0.09
Media Library /wp-admin/upload.php1,406 ▲124.19 ▲0.02101.93 ▼8.2543.30 ▼2.19
Extension Settings /wp-admin/options-general.php?page=esb-eu-settings8132.0324.8531.94

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=esb-eu-settings
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=esb-eu-settings
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

esb-url-extension/esb-url-extension.php Passed 13 tests

This is the main PHP file of "ESB URL Extension" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Extend your url with .html, .htm, .php, .jsp, .asp, .xml etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin202 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP799118189
CSS10013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in 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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin