94% acf-processors

Code Review | Advanced Forms Processors

WordPress plugin Advanced Forms Processors scored 94% from 54 tests.

About plugin

  • Plugin page: acf-processors
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 5.9.2
  • First release: Nov 13, 2017
  • Latest release: Nov 13, 2017
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: jasondalycan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 542 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.42MB] [CPU: ▼292.42ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Forms Processors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.4563.20 ▲15.93
Dashboard /wp-admin3.83 ▲0.4235.76 ▼0.62
Posts /wp-admin/edit.php4.05 ▲0.4139.23 ▲1.40
Add New Post /wp-admin/post-new.php7.36 ▲0.3996.65 ▼1,167.52
Media Library /wp-admin/upload.php3.77 ▲0.4626.95 ▼2.94
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.7725.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Forms Processors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,828 ▲7416.17 ▲0.087.12 ▲1.402.49 ▼0.00
Dashboard /wp-admin2,934 ▲766.27 ▲0.12121.10 ▼12.46170.41 ▲6.11
Posts /wp-admin/edit.php2,740 ▲523.25 ▲0.0165.69 ▲1.39158.61 ▲14.10
Add New Post /wp-admin/post-new.php1,692 ▲3121.97 ▲5.53437.97 ▲24.60158.81 ▲2.74
Media Library /wp-admin/upload.php1,747 ▲555.60 ▲0.10144.79 ▼43.79208.39 ▼85.52
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,2442.4354.01124.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/acf-processors/lib/tgmpa/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/acf-processors/lib/tgmpa/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (The Redirect processor), #2 (The Post Creation processor)
  • Plugin Name: You should set the name of your plugin on the first line ( === acf-processors === )
The official readme.txt might help

acf-processors/acf-processors.php Passed 13 tests

The primary PHP file in "Advanced Forms Processors" version 1.0.0 is used by WordPress to initiate all plugin functionality
49 characters long description:
Adds form processors to the Advanced Forms plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,000 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35311,6292,000

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity48.14
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods101
▷ Static methods54.95%
▷ Public methods7877.23%
▷ Protected methods2322.77%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin