94% acf-url-field-add-on

Code Review | ACF - URL Field Add-On

WordPress plugin ACF - URL Field Add-On scored 94% from 54 tests.

About plugin

  • Plugin page: acf-url-field-add-on
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2
  • WordPress version: 5.9.2
  • First release: Jun 30, 2016
  • Latest release: Sep 6, 2016
  • Number of updates: 4
  • Update frequency: every 17.0 days
  • Top authors: joharyjoox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,432 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼297.43ms] Passed 4 tests

A check of server-side resources used by ACF - URL Field Add-On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0554.80 ▲6.30
Dashboard /wp-admin3.46 ▲0.0532.02 ▼4.95
Posts /wp-admin/edit.php3.69 ▲0.0537.94 ▲0.40
Add New Post /wp-admin/post-new.php6.93 ▼0.0593.64 ▼1,184.40
Media Library /wp-admin/upload.php3.34 ▲0.0523.88 ▼0.75

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF - URL Field Add-On
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲4715.98 ▼0.065.91 ▲0.182.62 ▲0.16
Dashboard /wp-admin2,898 ▲376.32 ▲0.14117.38 ▼15.10156.93 ▼9.81
Posts /wp-admin/edit.php2,697 ▲33.39 ▲0.0366.27 ▲3.59142.71 ▼1.06
Add New Post /wp-admin/post-new.php1,671 ▼4020.10 ▼1.22380.39 ▼69.82155.72 ▼1.97
Media Library /wp-admin/upload.php1,699 ▲45.60 ▲0.11137.35 ▼8.25193.05 ▲6.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-url-field-add-on/acf-url-field-add-on.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: custom field, link field, acf

acf-url-field-add-on/acf-url-field-add-on.php 85% from 13 tests

The entry point to "ACF - URL Field Add-On" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/lang/")
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected601 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP27268339
JavaScript24149167
PO File26010695

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity9.33
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin