93% acf-on-the-go

Code Review | ACF On-The-Go

WordPress plugin ACF On-The-Go scored 93% from 54 tests.

About plugin

  • Plugin page: acf-on-the-go
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 4, 2020
  • Latest release: Feb 5, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: amaa (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 555 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼151.29ms] Passed 4 tests

Server-side resources used by ACF On-The-Go
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1632.43 ▲7.16
Dashboard /wp-admin3.10 ▲0.0444.30 ▼4.01
Posts /wp-admin/edit.php3.18 ▲0.0748.17 ▲0.81
Add New Post /wp-admin/post-new.php5.45 ▲0.0297.14 ▼603.18
Media Library /wp-admin/upload.php3.04 ▲0.0436.41 ▲1.22

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ACF On-The-Go
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,844 ▲24816.99 ▲1.5416.15 ▲6.4451.63 ▼1.91
Dashboard /wp-admin2,991 ▲575.88 ▼0.06150.40 ▲3.46121.87 ▼3.86
Posts /wp-admin/edit.php2,754 ▲152.68 ▼0.0169.90 ▼7.8686.34 ▼8.97
Add New Post /wp-admin/post-new.php1,685 ▲1518.94 ▼0.18393.22 ▼39.82111.22 ▼25.06
Media Library /wp-admin/upload.php1,825 ▲215.03 ▲0.01157.46 ▼12.86122.86 ▼4.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-on-the-go/includes/acfg-front-loader.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: You can take inspiration from this readme.txt

acf-on-the-go/acf-on-thego.php 85% from 13 tests

"ACF On-The-Go" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-on-the-go.php" instead of "acf-on-thego.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected698 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript38711369
PHP349100217
CSS4162059
Markdown113053

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.00
▷ Minimum class complexity12.00
▷ Maximum class complexity14.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.51MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/acfgo-images/screenshot-8.png55.89KB15.84KB▼ 71.65%
assets/acfgo-images/screenshot-7.png40.74KB11.41KB▼ 71.98%
assets/img/pencil12.png0.24KB0.20KB▼ 16.80%
assets/acfgo-images/screenshot-2.png145.19KB47.55KB▼ 67.25%
assets/acfgo-images/banner-772x250.png23.76KB8.07KB▼ 66.04%