84% acf-wpml-theme-options

Code Review | ACF WPML Theme Options

WordPress plugin ACF WPML Theme Options scored84%from 54 tests.

About plugin

  • Plugin page: acf-wpml-theme-op...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 22, 2017
  • Latest release: Nov 16, 2017
  • Number of updates: 10
  • Update frequency: every 8.7 days
  • Top authors: railmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,046 total downloads


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

A check of server-side resources used by ACF WPML Theme Options
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.63 ▼4.33
Dashboard /wp-admin3.39 ▲0.0943.14 ▼8.68
Posts /wp-admin/edit.php3.43 ▲0.0747.18 ▲1.90
Add New Post /wp-admin/post-new.php6.09 ▲0.2174.46 ▼13.57
Media Library /wp-admin/upload.php3.35 ▲0.1231.31 ▼6.79

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

A short overview of filesystem and database impact
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 ACF WPML Theme Options
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8014.48 ▲0.081.77 ▲0.0540.23 ▼5.18
Dashboard /wp-admin2,224 ▲334.91 ▲0.06106.56 ▼1.7242.60 ▼0.20
Posts /wp-admin/edit.php2,110 ▲212.05 ▲0.0539.43 ▼0.1039.42 ▲5.50
Add New Post /wp-admin/post-new.php1,431 ▼10022.40 ▼0.80573.28 ▼69.9642.65 ▼16.80
Media Library /wp-admin/upload.php1,403 ▲214.15 ▼0.0999.13 ▲1.8239.54 ▼2.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/acf-wpml-theme-options/acf-wpml-theme-options.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-wpml-theme-options/admin/controllers/ajax.class.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-wpml-theme-options/globals/controllers/reqs.class.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-wpml-theme-options/admin/controllers/interface.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ACFWPMLInterfaceAdmin' not found in wp-content/plugins/acf-wpml-theme-options/admin/controllers/config.class.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 96% 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
7 plugin tags: options, acfpro, settings, wpml, acf...

acf-wpml-theme-options/acf-wpml-theme-options.php 92% from 13 tests

The principal PHP file in "ACF WPML Theme Options" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin776 lines of code in 13 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 problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity22.50
▷ Minimum class complexity2.00
▷ Maximum class complexity54.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin