100% acfist

Code Review | ACFist

WordPress plugin ACFist scored 100% from 54 tests.

About plugin

  • Plugin page: acfist
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.9.2
  • First release: Aug 4, 2021
  • Latest release: Aug 4, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: wpizard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 166 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼292.59ms] Passed 4 tests

An overview of server-side resources used by ACFist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0356.79 ▲4.98
Dashboard /wp-admin3.43 ▲0.0232.61 ▲0.26
Posts /wp-admin/edit.php3.66 ▲0.0236.70 ▲1.56
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.59 ▼1,174.16
Media Library /wp-admin/upload.php3.31 ▲0.0224.44 ▲1.97

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACFist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.89 ▲0.108.16 ▲2.362.21 ▼0.68
Dashboard /wp-admin2,895 ▲346.15 ▼0.03117.04 ▼26.88156.99 ▼9.87
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0063.39 ▲0.38138.65 ▼6.99
Add New Post /wp-admin/post-new.php1,711 ▲5021.55 ▼1.10448.40 ▲26.24151.62 ▼3.45
Media Library /wp-admin/upload.php1,695 ▼35.50 ▼0.04143.38 ▲4.65181.68 ▼1.27

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

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === acfist === )
Please take inspiration from this readme.txt

acfist/acfist.php Passed 13 tests

"ACFist" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
Empower ACF with more features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected446 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP81457446

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.71
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods54
▷ Static methods814.81%
▷ Public methods4990.74%
▷ Protected methods23.70%
▷ Private methods35.56%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin