100% acf-stylizer

Code Review | ACF Stylizer

WordPress plugin ACF Stylizer scored 100% from 54 tests.

About plugin

  • Plugin page: acf-stylizer
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.9.2
  • First release: Feb 21, 2018
  • Latest release: Jul 22, 2021
  • Number of updates: 38
  • Update frequency: every 32.8 days
  • Top authors: rnoakes3rd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,028 total downloads


Plugin footprint Passed 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.01MB] [CPU: ▼300.69ms] Passed 4 tests

This is a short check of server-side resources used by ACF Stylizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0456.48 ▲1.10
Dashboard /wp-admin3.42 ▲0.0233.05 ▲0.75
Posts /wp-admin/edit.php3.65 ▲0.0143.33 ▲6.12
Add New Post /wp-admin/post-new.php6.92 ▼0.0892.06 ▼1,203.52
Media Library /wp-admin/upload.php3.30 ▲0.0123.79 ▼1.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Stylizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲3215.90 ▲0.176.50 ▲0.592.36 ▼0.59
Dashboard /wp-admin2,895 ▲416.12 ▼0.12120.37 ▼8.51154.53 ▼9.14
Posts /wp-admin/edit.php2,688 ▼03.23 ▼0.0163.66 ▲2.11140.95 ▼5.09
Add New Post /wp-admin/post-new.php1,661 ▼3916.38 ▼4.66402.36 ▼45.38156.63 ▼16.86
Media Library /wp-admin/upload.php1,698 ▼05.53 ▼0.04151.91 ▼1.88193.41 ▲0.15

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: acf, colorize, advanced, boxes, obvious...

acf-stylizer/acf-stylizer.php Passed 13 tests

The main file in "ACF Stylizer" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Simple plugin that stylizes Advanced Custom Fields meta boxes to make them more obvious.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,411 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity11.79
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
▷ Abstract classes210.53%
▷ Concrete classes1789.47%
▷ Final classes17100.00%
▷ Static methods3538.46%
▷ Public methods7481.32%
▷ Protected methods1213.19%
▷ Private methods55.49%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants14.76%
▷ Class constants2095.24%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.44MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/release/images/YourWordPressDXP300x600.png136.86KB60.69KB▼ 55.65%
assets/debug/images/robert-noakes.png6.28KB5.31KB▼ 15.39%
assets/debug/images/YourWordPressDXP300x600.png136.86KB60.69KB▼ 55.65%
assets/debug/images/noakes-plugins.png8.04KB6.25KB▼ 22.23%
assets/release/images/noakes-plugins.png8.04KB6.25KB▼ 22.23%