90% acfist

Code Review | ACFist

WordPress plugin ACFist scored90%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: 6.3.1
  • 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 /408 total downloads

Benchmarks

Plugin footprint 83% from 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.02MB] [CPU: ▼3.96ms] Passed 4 tests

This is a short check of server-side resources used by ACFist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0240.54 ▼4.05
Dashboard /wp-admin3.58 ▲0.0248.10 ▲0.48
Posts /wp-admin/edit.php3.70 ▲0.0250.31 ▼3.59
Add New Post /wp-admin/post-new.php6.16 ▲0.0295.37 ▼2.90
Media Library /wp-admin/upload.php3.51 ▲0.0239.16 ▼5.30

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

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

Browser metrics Passed 4 tests

ACFist: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.40 ▼0.211.66 ▼0.2541.14 ▼4.28
Dashboard /wp-admin2,195 ▲155.60 ▼0.08101.00 ▲13.2246.04 ▼1.64
Posts /wp-admin/edit.php2,100 ▼62.00 ▼0.0241.02 ▼2.9238.29 ▼5.11
Add New Post /wp-admin/post-new.php1,526 ▼017.55 ▼0.22625.06 ▼90.3851.16 ▼6.49
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.07102.31 ▼15.0144.08 ▼2.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === acfist === )
The official readme.txt might help

acfist/acfist.php Passed 13 tests

The entry point to "ACFist" version 1.0.1 is a PHP file that has certain tags in its header comment area
31 characters long description:
Empower ACF with more features.

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
There were no executable files found in this plugin446 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP81457446

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected