84% clicktoaddress-auto-complete

Code Review | Fetchify

WordPress plugin Fetchify scored84%from 54 tests.

About plugin

  • Plugin page: clicktoaddress-au...
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Sep 18, 2023
  • Number of updates: 61
  • Update frequency: every 40.7 days
  • Top authors: craftyclicks (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active /13,260 total downloads


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.00MB] [CPU: ▼9.17ms] Passed 4 tests

This is a short check of server-side resources used by Fetchify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.87 ▼3.43
Dashboard /wp-admin3.31 ▼0.0343.42 ▼16.63
Posts /wp-admin/edit.php3.37 ▲0.0149.95 ▲3.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.14 ▼15.43
Media Library /wp-admin/upload.php3.24 ▲0.0135.56 ▼1.20

Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fetchify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.75 ▲0.0844.39 ▲4.15
Dashboard /wp-admin2,198 ▲185.59 ▼0.0789.46 ▼2.4242.39 ▼1.47
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0240.27 ▲0.3635.67 ▼1.85
Add New Post /wp-admin/post-new.php1,526 ▼023.73 ▲0.49665.00 ▼36.3755.80 ▼7.89
Media Library /wp-admin/upload.php1,403 ▼04.24 ▲0.12103.43 ▼7.5541.72 ▼8.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clicktoaddress-auto-complete/clicktoaddress-auto-complete.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/clicktoaddress-auto-complete/includes/class-wc-clicktoaddress-autocomplete-integration.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clicktoaddress-auto-complete/wp/menu.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


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:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

clicktoaddress-auto-complete/clicktoaddress-auto-complete.php 92% from 13 tests

Analyzing the main PHP file in "Fetchify" version 1.7.0
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.4")

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
There were no executable files found in this plugin2,529 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

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.33
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
fetchify_logo.png5.22KB3.31KB▼ 36.53%