90% acf-stylizer

Code Review | ACF Stylizer

WordPress plugin ACF Stylizer scored90%from 54 tests.

About plugin

  • Plugin page: acf-stylizer
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 21, 2018
  • Latest release: Mar 23, 2023
  • Number of updates: 42
  • Update frequency: every 44.2 days
  • Top authors: rnoakes3rd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,869 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.90ms] 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.51 ▲0.0540.39 ▼4.62
Dashboard /wp-admin3.35 ▲0.0150.93 ▼15.68
Posts /wp-admin/edit.php3.47 ▲0.1149.96 ▲0.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0580.70 ▼23.34
Media Library /wp-admin/upload.php3.27 ▲0.0538.89 ▲1.07

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Stylizer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.53 ▼0.821.87 ▼0.0639.72 ▼3.88
Dashboard /wp-admin2,218 ▲125.83 ▲0.7598.92 ▼4.1238.73 ▼4.96
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0641.94 ▲3.8336.64 ▼1.10
Add New Post /wp-admin/post-new.php1,554 ▲2318.41 ▼4.66637.57 ▼28.5656.58 ▲2.06
Media Library /wp-admin/upload.php1,403 ▲64.25 ▲0.0496.01 ▼22.7343.73 ▼3.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: stylize, standout, colorize, advanced, acf...

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

The entry point to "ACF Stylizer" version 2.1.3 is a PHP file that has certain tags in its header comment area
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,224 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP214271,7501,712
CSS65641,568
JavaScript43653937
JSON1007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes210.53%
▷ Concrete classes1789.47%
▷ Final classes17100.00%
Methods91
▷ Static methods3538.46%
▷ Public methods7481.32%
▷ Protected methods1213.19%
▷ Private methods55.49%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants20
▷ Global constants00.00%
▷ Class constants20100.00%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.44MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/debug/images/YourWordPressDXP300x600.png136.86KB60.69KB▼ 55.65%
assets/debug/images/noakes-plugins.png8.04KB6.25KB▼ 22.23%
assets/release/images/robert-noakes.png6.28KB5.31KB▼ 15.39%
assets/release/images/YourWordPressDXP728x90.png73.03KB33.27KB▼ 54.44%
assets/release/images/YourWordPressDXP300x600.png136.86KB60.69KB▼ 55.65%