94% forms-actions

Code Review | Forms actions

WordPress plugin Forms actions scored 94% from 54 tests.

About plugin

  • Plugin page: forms-actions
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 5.8.1
  • First release: Nov 19, 2014
  • Latest release: Jun 13, 2015
  • Number of updates: 24
  • Update frequency: every 8.8 days
  • Top authors: gdurtan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,316 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼145.36ms] Passed 4 tests

Analyzing server-side resources used by Forms actions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.1035.43 ▲1.51
Dashboard /wp-admin3.16 ▲0.1141.44 ▼3.40
Posts /wp-admin/edit.php3.21 ▲0.1142.78 ▲8.40
Add New Post /wp-admin/post-new.php5.07 ▼0.3767.12 ▼579.68
Media Library /wp-admin/upload.php3.10 ▲0.1033.74 ▲0.15

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Forms actions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,730 ▲13416.57 ▲1.127.95 ▼1.5849.11 ▼1.26
Dashboard /wp-admin3,000 ▲696.93 ▲0.74141.32 ▼30.20117.71 ▲2.55
Posts /wp-admin/edit.php2,763 ▲242.77 ▲0.0969.90 ▲5.6785.88 ▼12.83
Add New Post /wp-admin/post-new.php2,024 ▲34119.91 ▲1.35430.40 ▲48.22124.98 ▲16.17
Media Library /wp-admin/upload.php1,837 ▲275.65 ▲0.65143.47 ▼5.78119.79 ▲1.86

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forms-actions/Forms_actions.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Activate Forms actions)
The official readme.txt might help

forms-actions/Forms_actions.php 92% from 13 tests

The main PHP script in "Forms actions" version 1.2.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("forms-actions.php" instead of "Forms_actions.php")

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
No dangerous file extensions were detected869 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4270150832
YAML10033
JavaScript16494
CSS1010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png123.90KB40.49KB▼ 67.32%