84% acf-processors

Code Review | Advanced Forms Processors

WordPress plugin Advanced Forms Processors scored84%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: 6.3.1
  • 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 /762 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.39MB] [CPU: ▼9.37ms] Passed 4 tests

Server-side resources used by Advanced Forms Processors
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4238.71 ▼1.69
Dashboard /wp-admin3.74 ▲0.3947.50 ▼20.11
Posts /wp-admin/edit.php3.79 ▲0.4351.17 ▼1.54
Add New Post /wp-admin/post-new.php6.26 ▲0.3786.17 ▼14.12
Media Library /wp-admin/upload.php3.60 ▲0.3736.63 ▲2.99
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.6736.05

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Forms Processors
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.48 ▲0.111.59 ▼0.1340.37 ▼3.36
Dashboard /wp-admin2,237 ▲495.89 ▲0.01107.64 ▼9.8941.77 ▼1.56
Posts /wp-admin/edit.php2,128 ▲392.04 ▲0.0339.93 ▲5.0937.56 ▲0.72
Add New Post /wp-admin/post-new.php1,559 ▲2723.39 ▲0.16634.84 ▼30.7156.66 ▲1.09
Media Library /wp-admin/upload.php1,424 ▲364.26 ▼0.0295.59 ▼16.9244.99 ▼2.21
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9622.2225.4429.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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 | 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
  • 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 shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === acf-processors === )
  • Screenshots: These screenshots require images: #1 (The Redirect processor), #2 (The Post Creation processor)
Please take inspiration from this readme.txt

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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,000 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35311,6292,000

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin