89% magic-liquidizer-responsive-form

Code Review | Magic Liquidizer Responsive Form

WordPress plugin Magic Liquidizer Responsive Form scored89%from 54 tests.

About plugin

  • Plugin page: magic-liquidizer-...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Feb 2, 2017
  • Number of updates: 18
  • Update frequency: every 60.8 days
  • Top authors: esstat17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,681 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.49ms] Passed 4 tests

An overview of server-side resources used by Magic Liquidizer Responsive Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.55 ▼5.42
Dashboard /wp-admin3.38 ▲0.0450.12 ▼12.65
Posts /wp-admin/edit.php3.49 ▲0.1451.00 ▲0.81
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.14 ▼16.68
Media Library /wp-admin/upload.php3.30 ▲0.0837.55 ▲6.22
About /wp-admin/admin.php?page=magic-liquidizer-about3.2734.53
Form /wp-admin/admin.php?page=magic-liquidizer-form3.2734.79
Setup Wizard /wp-admin/admin.php?page=magic-liquidizer-page-lite3.2733.20

Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/magic-liquidizer-responsive-form/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 16 new files
Database: no new tables, 9 new options
New WordPress options
liquidizer_lite_wp_form
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
liquidizer_lite_wp_form_width
db_upgraded
widget_recent-comments
liquidizer_lite_wp_which_form_element
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Magic Liquidizer Responsive Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲16113.61 ▼0.779.67 ▲7.6841.68 ▼0.00
Dashboard /wp-admin2,246 ▲435.79 ▼0.0999.95 ▼4.1740.84 ▼1.84
Posts /wp-admin/edit.php2,131 ▲342.01 ▲0.0034.86 ▼3.0136.45 ▲0.27
Add New Post /wp-admin/post-new.php1,556 ▲2423.35 ▲0.22664.89 ▼1.5857.38 ▲0.15
Media Library /wp-admin/upload.php1,431 ▲284.25 ▲0.0499.42 ▲0.6942.09 ▼2.63
About /wp-admin/admin.php?page=magic-liquidizer-about8202.1822.7227.40
Form /wp-admin/admin.php?page=magic-liquidizer-form8542.0224.6832.69
Setup Wizard /wp-admin/admin.php?page=magic-liquidizer-page-lite1,0472.0625.3734.66

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (How does your Form look like BEFORE. screenshot-1.png), #2 (Magic Liquidizer Responsive Form - Wordpress Admin Section. screenshot-2.png), #3 (This screenshot was taken from our DEMO page AFTER installation. Client-side screenshot. screenshot-3.png)
You can take inspiration from this readme.txt

magic-liquidizer-responsive-form/magic-liquidizer-responsive-form.php 92% from 13 tests

"Magic Liquidizer Responsive Form" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin476 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP591111324
CSS11810127
JavaScript483825

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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
4 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png35.92KB10.05KB▼ 72.02%
screenshot.png102.07KB32.02KB▼ 68.63%
screenshot-2.png71.40KB22.66KB▼ 68.26%
screenshot-1.png42.42KB12.39KB▼ 70.80%