67% autoretouch

Code Review | autoRetouch

WordPress plugin autoRetouch scored67%from 54 tests.

About plugin

  • Plugin page: autoretouch
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Jul 27, 2021
  • Number of updates: 16
  • Update frequency: every 14.9 days
  • Top authors: autoretouch (93.75%)tilllorentzen (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /645 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by autoRetouch
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.29 ▼4.37
Dashboard /wp-admin3.35 ▲0.0549.84 ▲2.27
Posts /wp-admin/edit.php3.40 ▲0.0551.32 ▼0.39
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.52 ▼19.97
Media Library /wp-admin/upload.php3.28 ▲0.0534.64 ▼2.00
Settings /wp-admin/admin.php?page=wc-autoretouch-integration-sub-settings3.2833.17
Submit multiple /wp-admin/admin.php?page=wc-autoretouch-integration-submit-multiple3.2939.59
Job History /wp-admin/admin.php?page=wc-autoretouch-integration-sub-history3.2736.53

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 10 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for autoRetouch
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12414.78 ▲0.421.80 ▼0.0942.89 ▼0.37
Dashboard /wp-admin2,288 ▲1115.52 ▼0.1385.96 ▼5.2951.61 ▲10.89
Posts /wp-admin/edit.php2,196 ▲932.01 ▼0.0834.20 ▼1.8343.13 ▲7.47
Add New Post /wp-admin/post-new.php1,552 ▲2423.11 ▼0.11674.93 ▼24.1174.70 ▲21.69
Media Library /wp-admin/upload.php1,497 ▲1004.26 ▲0.0698.09 ▼14.7260.92 ▲10.11
Settings /wp-admin/admin.php?page=wc-autoretouch-integration-sub-settings9951.6629.3064.77
Submit multiple /wp-admin/admin.php?page=wc-autoretouch-integration-submit-multiple7301.126.7025.23
Job History /wp-admin/admin.php?page=wc-autoretouch-integration-sub-history9621.6624.6736.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_autoretouch_jobs
  • Zombie WordPress options were found after uninstall: 10 options
    • can_compress_scripts
    • db_upgraded
    • ARI_selectedOrganization
    • ARI_tokenExpiry
    • widget_recent-comments
    • widget_recent-posts
    • ARI_accessToken
    • ARI_refreshToken
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=wc-autoretouch-integration-submit-multiple
    • > Notice in wp-content/plugins/autoretouch/admin/wc-autoretouch-integration-admin-submit-multiple.php+15
    Undefined index: post_ids

SRP 50% from 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
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function urldecode_deep() in wp-content/plugins/autoretouch/admin/wc-autoretouch-integration-admin-submit-multiple.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/autoretouch/admin/wc-autoretouch-integration-admin-display-settings.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/autoretouch/admin/wc-autoretouch-integration-admin-display-history.php:19

User-side errors Passed 1 test

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


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === autoretouch === )
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

autoretouch/wc-autoretouch-integration.php 85% from 13 tests

The principal PHP file in "autoRetouch" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("autoretouch.php" instead of "wc-autoretouch-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,072 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.92
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
▷ Static methods67.79%
▷ Public methods6381.82%
▷ Protected methods00.00%
▷ Private methods1418.18%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There are no PNG files in this plugin