84% available-url

Code Review | Available URL

WordPress plugin Available URL scored84%from 54 tests.

About plugin

  • Plugin page: available-url
  • Plugin version: 1.4.5.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: Jan 21, 2022
  • Number of updates: 11
  • Update frequency: every 66.4 days
  • Top authors: mjkhajeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.17ms] Passed 4 tests

Analyzing server-side resources used by Available URL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.64 ▲4.62
Dashboard /wp-admin3.49 ▲0.1949.26 ▼3.46
Posts /wp-admin/edit.php3.60 ▲0.2551.47 ▲1.79
Add New Post /wp-admin/post-new.php6.09 ▲0.2192.00 ▼6.47
Media Library /wp-admin/upload.php3.41 ▲0.1840.74 ▲3.48
Available URL /wp-admin/options-general.php?page=availableurl3.3835.84

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Available URL
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.31 ▼0.041.68 ▼0.1142.86 ▲1.84
Dashboard /wp-admin2,199 ▲195.58 ▼0.05112.50 ▲25.9238.36 ▼1.78
Posts /wp-admin/edit.php2,101 ▼22.00 ▲0.0139.15 ▼2.9034.60 ▲1.53
Add New Post /wp-admin/post-new.php1,691 ▲16524.47 ▲1.32591.59 ▼17.3150.33 ▼8.33
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.0693.92 ▼15.3642.21 ▼5.63
Available URL /wp-admin/options-general.php?page=availableurl1,2662.5942.8530.54

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/available-url/Includes/Templates/url_row.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AvailableURL\\Backend\\Options\\add_filter() in wp-content/plugins/available-url/Backend/Options/Users.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AvailableURL\\Backend\\add_action() in wp-content/plugins/available-url/Backend/Menu.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AvailableURL\\Backend\\Options\\add_filter() in wp-content/plugins/available-url/Backend/Options/Settings.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AvailableURL\\Backend\\Options\\add_filter() in wp-content/plugins/available-url/Backend/Options/Roles.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AvailableURL\\add_action() in wp-content/plugins/available-url/available-url.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Available URL Dashboard.) image required
You can look at the official readme.txt

available-url/available-url.php 92% from 13 tests

The principal PHP file in "Available URL" v. 1.4.5.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin932 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP713090798
PO File1222667
JavaScript35446
CSS30021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity19.50
▷ Minimum class complexity7.00
▷ Maximum class complexity31.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods35
▷ Static methods1234.29%
▷ Public methods2674.29%
▷ Protected methods00.00%
▷ Private methods925.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin