83% mymovingloads-leads-form

Code Review | MoveAdvisor Leads Form

WordPress plugin MoveAdvisor Leads Form scored83%from 54 tests.

About plugin

  • Plugin page: mymovingloads-lea...
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2018
  • Latest release: Jul 31, 2023
  • Number of updates: 54
  • Update frequency: every 36.7 days
  • Top authors: mymovingloads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,535 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.19MB] [CPU: ▼6.75ms] Passed 4 tests

A check of server-side resources used by MoveAdvisor Leads Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.39 ▲1.17
Dashboard /wp-admin3.52 ▲0.1844.91 ▼11.25
Posts /wp-admin/edit.php3.64 ▲0.2847.66 ▼2.81
Add New Post /wp-admin/post-new.php6.12 ▲0.2481.80 ▼14.10
Media Library /wp-admin/upload.php3.45 ▲0.2249.81 ▲14.18

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 126 new files
Database: 2 new tables, 15 new options
New tables
mml_countries
mml_countriesNames
New WordPress options
mml_leadform_option_privacy
widget_theysaidso_widget
mml_leadform_option_formtitle
widget_recent-comments
mml_leadform_option_buttoncolor
theysaidso_admin_options
mml_leadform_option_selectlang
can_compress_scripts
db_upgraded
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for MoveAdvisor Leads Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲20914.04 ▼0.3916.06 ▲14.1038.27 ▼7.49
Dashboard /wp-admin2,251 ▲775.75 ▲0.1083.31 ▼10.2074.13 ▲31.14
Posts /wp-admin/edit.php2,158 ▲582.31 ▲0.2935.18 ▼2.3233.58 ▼1.62
Add New Post /wp-admin/post-new.php1,730 ▲19922.30 ▼0.94753.17 ▲84.2832.04 ▼26.87
Media Library /wp-admin/upload.php1,453 ▲534.36 ▲0.17114.08 ▲12.4273.20 ▲26.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • db_upgraded
    • mml_leadform_option_selectlang
    • widget_mml_leadform_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • mml_leadform_option_formbg
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mymovingloads-leads-form/includes/templates/en/mml_leadform_nz.html.php
    • > /wp-content/plugins/mymovingloads-leads-form/includes/templates/en/mml_leadform_ca.html.php
    • > /wp-content/plugins/mymovingloads-leads-form/includes/templates/en/mml_leadform_us.html.php
    • > /wp-content/plugins/mymovingloads-leads-form/includes/templates/en/mml_leadform_au.html.php
    • > /wp-content/plugins/mymovingloads-leads-form/includes/templates/en/mml_leadform_int.html.php
    • > /wp-content/plugins/mymovingloads-leads-form/includes/templates/en/mml_leadform_de.html.php
    • > /wp-content/plugins/mymovingloads-leads-form/includes/templates/en/mml_leadform_uk.html.php
    • > /wp-content/plugins/mymovingloads-leads-form/includes/templates/de/mml_leadform_int.html.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

mymovingloads-leads-form/mml-leadform.php 85% from 13 tests

The entry point to "MoveAdvisor Leads Form" version 3.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mymovingloads-leads-form.php" instead of "mml-leadform.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected72,704 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
SQL23064,072
PHP142591823,652
CSS6128741,974
JavaScript63231701,491
HTML331468990
PO File1107109414
JSON760076
SVG20235

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity31.67
▷ Minimum class complexity2.00
▷ Maximum class complexity63.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods2295.65%
▷ Protected methods00.00%
▷ Private methods14.35%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
10 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
assets/css/images/ui-icons_777620_256x240.png4.52KB4.18KB▼ 7.58%
assets/css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
assets/img/mml_sprite.png5.13KB2.49KB▼ 51.56%
assets/css/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%