100% acf-booster

Code Review | ACF Booster

WordPress plugin ACF Booster scored 100% from 54 tests.

About plugin

  • Plugin page: acf-booster
  • Plugin version: 1.0
  • PHP compatiblity: 7.1.23+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 5.9.2
  • First release: Dec 27, 2019
  • Latest release: Jan 10, 2020
  • Number of updates: 10
  • Update frequency: every 1.5 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 391 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by ACF Booster
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0866.39 ▲5.98
Dashboard /wp-admin3.49 ▲0.0937.82 ▲1.31
Posts /wp-admin/edit.php3.72 ▲0.0842.18 ▲3.03
Add New Post /wp-admin/post-new.php6.95 ▼0.02102.28 ▼1,201.55
Media Library /wp-admin/upload.php3.37 ▲0.0727.47 ▼4.75

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF Booster: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1916.15 ▲0.025.82 ▼0.002.45 ▲0.07
Dashboard /wp-admin2,888 ▲206.15 ▼0.01143.50 ▼21.95163.03 ▼29.95
Posts /wp-admin/edit.php2,685 ▼33.24 ▲0.0165.26 ▼3.94173.74 ▼19.67
Add New Post /wp-admin/post-new.php1,717 ▼3521.99 ▲1.17453.46 ▼33.59164.61 ▼17.66
Media Library /wp-admin/upload.php1,698 ▼35.49 ▲0.02174.57 ▲14.04183.06 ▼7.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: custom fields, acf, acf counter

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

The primary PHP file in "ACF Booster" version 1.0 is used by WordPress to initiate all plugin functionality
43 characters long description:
Add functionality to Advanced Custom Fields

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
Good job! No executable or dangerous file extensions detected577 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP38112371
JavaScript4932200
CSS1006

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.55
Average class complexity21.50
▷ Minimum class complexity19.00
▷ Maximum class complexity24.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ 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
4 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png64.95KB19.06KB▼ 70.65%
assets/screenshot-2.png60.57KB10.21KB▼ 83.15%
assets/icon-128x128.png10.38KB3.91KB▼ 62.36%
assets/icon-256x256.png22.00KB7.91KB▼ 64.04%