89% frontend-editor-acf

Code Review | Frontend Editor ACF

WordPress plugin Frontend Editor ACF scored89%from 54 tests.

About plugin

  • Plugin page: frontend-editor-acf
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2023
  • Latest release: Jun 30, 2023
  • Number of updates: 3
  • Update frequency: every 5.0 days
  • Top authors: anand.au14 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Frontend Editor ACF
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1042.62 ▲1.77
Dashboard /wp-admin3.39 ▲0.0951.56 ▼3.79
Posts /wp-admin/edit.php3.50 ▲0.1552.54 ▲2.63
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.70 ▼9.26
Media Library /wp-admin/upload.php3.31 ▲0.0939.53 ▲6.87

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Frontend Editor ACF
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.72 ▲0.171.70 ▼0.0543.02 ▼4.05
Dashboard /wp-admin2,204 ▲305.64 ▲0.0687.53 ▼11.0338.26 ▼5.20
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0838.32 ▼0.8037.16 ▼3.03
Add New Post /wp-admin/post-new.php1,532 ▲423.13 ▲0.22664.04 ▼27.6766.27 ▲11.25
Media Library /wp-admin/upload.php1,409 ▲94.20 ▼0.0096.75 ▼3.6343.16 ▼1.79

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: frontend editing, acf, advanced custom field

frontend-editor-acf/frontend-editor-acf.php 77% from 13 tests

"Frontend Editor ACF" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin605 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9126278490
CSS111070
JavaScript171745

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods38
▷ Static methods513.16%
▷ Public methods3592.11%
▷ Protected methods00.00%
▷ Private methods37.89%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin