93% acf-css-add-on

Code Review | ACF CSS ADD-ON

WordPress plugin ACF CSS ADD-ON scored 93% from 54 tests.

About plugin

  • Plugin page: acf-css-add-on
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jul 31, 2019
  • Latest release: Aug 1, 2019
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: yatnam (80%)Otto42 (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 526 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by ACF CSS ADD-ON
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.45 ▲4.95
Dashboard /wp-admin3.41 ▲0.0032.14 ▼2.12
Posts /wp-admin/edit.php3.64 ▲0.0036.00 ▼1.27
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.52 ▼1,171.75
Media Library /wp-admin/upload.php3.29 ▼0.0124.92 ▼2.13

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: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF CSS ADD-ON
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,798 ▲7615.89 ▼0.145.63 ▼0.433.17 ▲0.65
Dashboard /wp-admin2,892 ▲386.21 ▲0.02119.76 ▼14.22156.26 ▼2.55
Posts /wp-admin/edit.php2,691 ▼03.36 ▲0.0063.89 ▼1.01145.12 ▼0.40
Add New Post /wp-admin/post-new.php1,711 ▲5021.27 ▲4.97451.00 ▲35.59156.57 ▼0.80
Media Library /wp-admin/upload.php1,698 ▼05.54 ▼0.00137.79 ▼2.19183.41 ▼11.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ACFCA_PATH - assumed 'ACFCA_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-css-add-on/includes/class-acfca.php on line 3
    • > PHP Fatal error
      require(): Failed opening required 'ACFCA_PATHadmin/class-acfca-admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/acf-css-add-on/includes/class-acfca.php on line 3
    • > PHP Warning
      require(ACFCA_PATHadmin/class-acfca-admin.php): failed to open stream: No such file or directory in wp-content/plugins/acf-css-add-on/includes/class-acfca.php on line 3

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 86% 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
These attributes need your attention:
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

acf-css-add-on/acfca.php 77% from 13 tests

Analyzing the main PHP file in "ACF CSS ADD-ON" version 1.0.0
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-css-add-on.php" instead of "acfca.php")
  • Description: The description should be shorter than 140 characters (currently 355 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected471 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.75
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin