10% anyform

Code Review | Any Form

WordPress plugin Any Form scored10%from 54 tests.

About plugin

  • Plugin page: anyform
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 6.3.1
  • First release: May 28, 2020
  • Latest release: May 29, 2020
  • Number of updates: 18
  • Update frequency: every 7.9 days
  • Top authors: blankor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /590 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/anyform/admin/form-fields.php+129
    syntax error, unexpected end of file

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

An overview of server-side resources used by Any Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0057.22 ▲10.53
Dashboard /wp-admin3.31 ▼0.0446.63 ▼17.68
Posts /wp-admin/edit.php3.36 ▲0.0048.28 ▲0.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.08 ▼14.61
Media Library /wp-admin/upload.php3.23 ▲0.0037.20 ▲5.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Any Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.122.03 ▲0.2343.37 ▲1.32
Dashboard /wp-admin2,192 ▲175.58 ▼0.0383.61 ▼22.7237.94 ▼3.64
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0039.71 ▲2.9934.95 ▲0.63
Add New Post /wp-admin/post-new.php1,545 ▼023.15 ▲0.10651.03 ▼19.8956.08 ▲1.10
Media Library /wp-admin/upload.php1,403 ▲64.24 ▲0.02103.63 ▼3.0748.27 ▲0.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/anyform/admin/contacts-list.php on line 8
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/anyform/admin/common-ui.php on line 13
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/anyform/admin/contacts-edit.php on line 98
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Anyform\\plugin_dir_path() in wp-content/plugins/anyform/includes/functions.php:8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/anyform/admin/contacts-list.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/anyform/admin/contacts-list.php on line 8
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/anyform/public/form-ui.php on line 125
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/anyform/admin/form-fields.php on line 129
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Anyform\\plugin_dir_path() in wp-content/plugins/anyform/any-form.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

anyform/any-form.php 77% from 13 tests

Analyzing the main PHP file in "Any Form" version 1.0.1
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("anyform.php" instead of "any-form.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin839 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1013085733
CSS1160106

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.23
Average class complexity6.88
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods45
▷ Static methods2248.89%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions00.00%
▷ Anonymous functions11100.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin