88% acf-front-end-editor

Code Review | ACF Front End Editor

WordPress plugin ACF Front End Editor scored 88% from 54 tests.

About plugin

  • Plugin page: acf-front-end-editor
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Sep 14, 2016
  • Latest release: Sep 30, 2016
  • Number of updates: 15
  • Update frequency: every 1.1 days
  • Top authors: horiondigital (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

300+ active / 9,664 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼140.86ms] Passed 4 tests

Server-side resources used by ACF Front End Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1043.62 ▲8.12
Dashboard /wp-admin3.15 ▲0.0949.86 ▼1.02
Posts /wp-admin/edit.php3.26 ▲0.1552.88 ▲3.97
Add New Post /wp-admin/post-new.php5.50 ▲0.0794.85 ▼565.44
Media Library /wp-admin/upload.php3.09 ▲0.0935.67 ▼0.93
ACF Front end editor /wp-admin/options-general.php?page=acf-front-end-editor3.0631.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ACF Front End Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,866 ▲27016.42 ▲0.8417.89 ▲9.8955.15 ▲4.80
Dashboard /wp-admin2,979 ▲455.91 ▼0.04166.29 ▲13.10128.44 ▲5.85
Posts /wp-admin/edit.php2,748 ▲92.68 ▼0.0165.73 ▼1.7693.24 ▼0.97
Add New Post /wp-admin/post-new.php1,690 ▲718.78 ▲0.71382.80 ▼7.96117.98 ▼3.87
Media Library /wp-admin/upload.php1,816 ▲65.02 ▲0.01165.35 ▲15.06121.10 ▼9.22
ACF Front end editor /wp-admin/options-general.php?page=acf-front-end-editor1,0742.3856.0684.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acf-front-end-editor/public/partials/acf-front-end-editor-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/acf-front-end-editor/admin/partials/acf-front-end-editor-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === acf-front-end-editor === )
You can look at the official readme.txt

acf-front-end-editor/acf-front-end-editor.php Passed 13 tests

The entry point to "ACF Front End Editor" version 2.0.2 is a PHP file that has certain tags in its header comment area
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin845 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS153010358
PHP12147600333
JavaScript31532145
Markdown1809

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.71
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3181.58%
▷ Protected methods00.00%
▷ Private methods718.42%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin