83% spiceforms-form-builder

Code Review | SpiceForms Form Builder

WordPress plugin SpiceForms Form Builder scored83%from 54 tests.

About plugin

  • Plugin page: spiceforms-form-b...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 26, 2015
  • Latest release: Mar 20, 2015
  • Number of updates: 5
  • Update frequency: every 4.6 days
  • Top authors: a.ankit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /4,718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.96ms] Passed 4 tests

A check of server-side resources used by SpiceForms Form Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.50 ▼1.27
Dashboard /wp-admin3.33 ▲0.0250.54 ▼1.93
Posts /wp-admin/edit.php3.38 ▲0.0246.87 ▼5.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.57 ▼14.86
Media Library /wp-admin/upload.php3.25 ▲0.0237.63 ▲0.87

Server storage [IO: ▲0.02MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for SpiceForms Form Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6613.29 ▼0.671.87 ▲0.0342.15 ▼0.36
Dashboard /wp-admin2,227 ▲275.83 ▲0.92104.33 ▼3.1040.50 ▼2.45
Posts /wp-admin/edit.php2,109 ▲91.98 ▼0.0235.66 ▼2.5837.00 ▲2.76
Add New Post /wp-admin/post-new.php1,555 ▲1023.28 ▲0.04685.94 ▲29.0659.07 ▲2.59
Media Library /wp-admin/upload.php1,412 ▲124.15 ▼0.15112.47 ▲10.6751.71 ▲5.36

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spiceforms-form-builder/spiceform.php:12

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Version format is invalid
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

spiceforms-form-builder/spiceform.php 92% from 13 tests

The entry point to "SpiceForms Form Builder" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spiceforms-form-builder.php" instead of "spiceform.php")

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 detected148 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP187121
JavaScript22021
CSS1106

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/check.png0.26KB0.39KB0.00%
img/delete.png0.25KB0.29KB0.00%