84% simple-accessible-forms

Code Review | Simple Accessible Forms

WordPress plugin Simple Accessible Forms scored84%from 54 tests.

About plugin

  • Plugin page: simple-accessible...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-6.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2022
  • Latest release: Feb 4, 2023
  • Number of updates: 12
  • Update frequency: every 19.3 days
  • Top authors: seshelby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /575 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.17ms] Passed 4 tests

Server-side resources used by Simple Accessible Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.85 ▲0.52
Dashboard /wp-admin3.33 ▲0.0348.42 ▲1.67
Posts /wp-admin/edit.php3.38 ▲0.0352.06 ▲3.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.23 ▼14.03
Media Library /wp-admin/upload.php3.25 ▲0.0336.55 ▲3.18
Form Builder /wp-admin/admin.php?page=simple-accessible-forms-builder/builder.php3.2231.03

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables
wp_simple_accessible_forms_formfields
wp_simple_accessible_forms_forms
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
simple_accessible_forms_version
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Accessible Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲20913.69 ▼0.896.05 ▲4.3736.78 ▼11.36
Dashboard /wp-admin2,243 ▲524.87 ▼1.03115.11 ▲8.4142.64 ▼3.98
Posts /wp-admin/edit.php2,126 ▲342.05 ▲0.0540.49 ▲0.8635.63 ▲0.81
Add New Post /wp-admin/post-new.php1,544 ▲223.21 ▲5.03641.63 ▲5.1951.14 ▼0.69
Media Library /wp-admin/upload.php1,422 ▲404.32 ▲0.1698.59 ▼1.4641.59 ▼1.93
Form Builder /wp-admin/admin.php?page=simple-accessible-forms-builder/builder.php8901.8528.0135.62
Settings /wp-admin/simple-accessible-forms-options.php260.440.1314.77

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
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/simple-accessible-forms-options.php
    • > Network (severe)
    wp-admin/simple-accessible-forms-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

simple-accessible-forms/simple-accessible-forms.php 92% from 13 tests

The principal PHP file in "Simple Accessible Forms" v. 1.0.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 501 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,883 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2257142897
JavaScript3301100887
CSS22099

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions49
▷ Named functions4285.71%
▷ Anonymous functions714.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin