90% acf-booster

Code Review | ACF Booster

WordPress plugin ACF Booster scored90%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: 6.3.1
  • 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 /601 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼3.66ms] 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.54 ▲0.0839.03 ▼1.72
Dashboard /wp-admin3.38 ▲0.0448.05 ▼16.16
Posts /wp-admin/edit.php3.43 ▲0.0750.00 ▲7.27
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.80 ▲3.01
Media Library /wp-admin/upload.php3.30 ▲0.0735.16 ▲0.25

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ACF Booster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.181.72 ▼0.3440.53 ▼2.42
Dashboard /wp-admin2,200 ▲95.84 ▼0.04106.44 ▼4.7539.94 ▲0.62
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0138.92 ▼1.1634.79 ▼4.22
Add New Post /wp-admin/post-new.php1,533 ▲1423.16 ▼0.05666.47 ▲56.9857.78 ▲2.06
Media Library /wp-admin/upload.php1,385 ▼64.40 ▲0.1995.91 ▼3.1443.65 ▲0.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

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
3 plugin tags: custom fields, acf counter, acf

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

Analyzing the main PHP file in "ACF Booster" version 1.0
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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
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

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in 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

Using a strong compression for your PNG files is a great way to speed-up 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/icon-256x256.png22.00KB7.91KB▼ 64.04%
assets/screenshot-2.png60.57KB10.21KB▼ 83.15%
assets/icon-128x128.png10.38KB3.91KB▼ 62.36%
assets/screenshot-1.png64.95KB19.06KB▼ 70.65%