78% mailplus-forms

Code Review | Spotler Mail+ Forms

WordPress plugin Spotler Mail+ Forms scored78%from 54 tests.

About plugin

  • Plugin page: mailplus-forms
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2012
  • Latest release: Jul 25, 2023
  • Number of updates: 26
  • Update frequency: every 151.7 days
  • Top authors: webwhales (61.54%)MailPlus (42.31%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /9,400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▼4.89ms] Passed 4 tests

Server-side resources used by Spotler Mail+ Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3951.96 ▼13.70
Dashboard /wp-admin3.70 ▲0.4054.50 ▲4.57
Posts /wp-admin/edit.php3.76 ▲0.4053.59 ▲0.23
Add New Post /wp-admin/post-new.php6.24 ▲0.3687.34 ▼7.72
Media Library /wp-admin/upload.php3.57 ▲0.3439.20 ▲1.63
Spotler Mail+ Forms /wp-admin/options-general.php?page=spotler_forms3.5335.34

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 202 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
spotler_settings_migrated
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Spotler Mail+ Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.012.19 ▲0.4745.65 ▲1.86
Dashboard /wp-admin2,201 ▲215.64 ▼0.02104.42 ▲14.7842.45 ▲3.03
Posts /wp-admin/edit.php2,106 ▲61.98 ▼0.0136.10 ▼0.4235.75 ▼1.09
Add New Post /wp-admin/post-new.php6,193 ▲4,66719.53 ▼3.49913.44 ▲253.3555.90 ▲5.46
Media Library /wp-admin/upload.php1,406 ▲64.18 ▼0.0199.40 ▼2.3747.38 ▲2.31
Spotler Mail+ Forms /wp-admin/options-general.php?page=spotler_forms8832.0425.3829.84

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • spotler_settings_migrated
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 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 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 items
  • 61× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/mailplus-forms/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/mailplus-forms/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/mailplus-forms/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'SpotlerAbstract' not found in wp-content/plugins/mailplus-forms/general/classes/Api.class.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'SpotlerAbstract' not found in wp-content/plugins/mailplus-forms/general/classes/TinyMCE.class.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'SpotlerAbstract' not found in wp-content/plugins/mailplus-forms/general/classes/Ajax.class.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/mailplus-forms/vendor/psr/http-message/src/ResponseInterface.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/mailplus-forms/vendor/psr/http-client/src/RequestExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/mailplus-forms/vendor/guzzlehttp/guzzle/src/BodySummarizer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'SpotlerAbstract' not found in wp-content/plugins/mailplus-forms/general/classes/Form.class.php:6

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)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=spotler_forms
    • > Javascript (severe) in unknown
    /wp-content/plugins/mailplus-forms/admin/assets/js/gutenberg_plugin.js?ver=1690266142 1:21 Uncaught TypeError: Cannot read properties of undefined (reading 'createElement')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: mailplus, forms, spotler mail forms, spotler

mailplus-forms/mailplus-forms.php 92% from 13 tests

The main PHP script in "Spotler Mail+ Forms" version 1.2.5 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 924 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
No dangerous file extensions were detected16,176 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
PHP1432,3236,06111,075
Markdown161,26803,646
JSON11001,109
JavaScript3367183
PO File1273967
CSS115062
reStructuredText1326018
make1409
YAML1007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity12.17
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces17
Interfaces26
Traits3
Classes98
▷ Abstract classes11.02%
▷ Concrete classes9798.98%
▷ Final classes3536.08%
Methods815
▷ Static methods15418.90%
▷ Public methods68083.44%
▷ Protected methods50.61%
▷ Private methods13015.95%
Functions129
▷ Named functions3728.68%
▷ Anonymous functions9271.32%
Constants80
▷ Global constants45.00%
▷ Class constants7695.00%
▷ Public constants6585.53%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/spotler-icon.png1.30KB0.60KB▼ 54.04%
admin/assets/images/spotler.png4.73KB3.74KB▼ 21.04%