84% mad-mimi-sign-up-forms

Code Review | Mad Mimi Signup Forms

WordPress plugin Mad Mimi Signup Forms scored84%from 54 tests.

About plugin

  • Plugin page: mad-mimi-sign-up-...
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4
  • WordPress version: 6.3.1
  • First release: Jun 2, 2013
  • Latest release: Apr 13, 2020
  • Number of updates: 24
  • Update frequency: every 104.5 days
  • Top authors: eherman24 (29.17%)maor (29.17%)willmot (25%)myecommerce (16.67%)Godaddy (12.5%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /28,581 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.21ms] Passed 4 tests

Server-side resources used by Mad Mimi Signup Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0440.01 ▼0.04
Dashboard /wp-admin3.34 ▲0.0444.76 ▼6.51
Posts /wp-admin/edit.php3.39 ▲0.0445.02 ▲1.72
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.33 ▼4.00
Media Library /wp-admin/upload.php3.26 ▲0.0436.39 ▲3.47
Mad Mimi Settings /wp-admin/options-general.php?page=mad-mimi-settings3.2331.13

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
mad-mimi-settings
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_mimi-form
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Mad Mimi Signup Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲15513.94 ▼0.868.60 ▲6.7743.77 ▼1.40
Dashboard /wp-admin2,210 ▲194.86 ▼0.23107.64 ▼1.9241.29 ▼5.03
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0239.66 ▲4.0935.53 ▲0.85
Add New Post /wp-admin/post-new.php1,517 ▲317.83 ▲0.17657.13 ▼16.4256.92 ▼8.54
Media Library /wp-admin/upload.php1,386 ▲74.17 ▼0.0396.38 ▼5.5940.98 ▼2.53
Mad Mimi Settings /wp-admin/options-general.php?page=mad-mimi-settings9732.1522.8832.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_mimi-form
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mad-mimi-sign-up-forms/madmimiofficial.php:215
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mad-mimi-sign-up-forms/includes/widget.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: email, opt-in, marketing, newsletter, mailing list...

mad-mimi-sign-up-forms/madmimiofficial.php 85% from 13 tests

The principal PHP file in "Mad Mimi Signup Forms" v. 1.7.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mad-mimi-sign-up-forms.php" instead of "madmimiofficial.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 144 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
Success! There were no dangerous files found in this plugin1,141 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP7649111948
JavaScript27631134
CSS6111359

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity17.00
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods49
▷ Static methods2755.10%
▷ Public methods4591.84%
▷ Protected methods00.00%
▷ Private methods48.16%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/mimi-voice.png12.06KB12.21KB0.00%