83% visual-form-builder-magic

Code Review | Visual Form Builder Magic

WordPress plugin Visual Form Builder Magic scored83%from 54 tests.

About plugin

  • Plugin page: visual-form-build...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Apr 10, 2013
  • Number of updates: 22
  • Update frequency: every 0.1 days
  • Top authors: jrevillini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /11,645 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.84ms] Passed 4 tests

A check of server-side resources used by Visual Form Builder Magic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.91 ▼3.67
Dashboard /wp-admin3.32 ▼0.0351.66 ▼19.41
Posts /wp-admin/edit.php3.37 ▲0.0151.37 ▼1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.55 ▼15.21
Media Library /wp-admin/upload.php3.24 ▲0.0136.76 ▲1.73

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

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

Browser metrics Passed 4 tests

Visual Form Builder Magic: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.012.17 ▲0.1845.17 ▲1.27
Dashboard /wp-admin2,198 ▲185.56 ▼0.0988.24 ▼6.2641.21 ▲0.24
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0139.38 ▲2.0337.27 ▲0.31
Add New Post /wp-admin/post-new.php1,535 ▲17118.27 ▲1.64646.03 ▲64.9362.22 ▲12.72
Media Library /wp-admin/upload.php1,397 ▼64.10 ▼0.12104.20 ▼0.9044.47 ▼0.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/visual-form-builder-magic/jrevillini-visual-form-builder-magic.php on line 40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-form-builder-magic/jrevillini-visual-form-builder-magic.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === visual-form-builder-magic === )
The official readme.txt is a good inspiration

visual-form-builder-magic/jrevillini-visual-form-builder-magic.php 85% from 13 tests

The main PHP file in "Visual Form Builder Magic" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("visual-form-builder-magic.php" instead of "jrevillini-visual-form-builder-magic.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1204021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
No PNG files were detected