68% mad-mimi-wp

Code Review | Mad Mimi Forms by Optin Cat

WordPress plugin Mad Mimi Forms by Optin Cat scored 68% from 54 tests.

About plugin

  • Plugin page: mad-mimi-wp
  • Plugin version: 2.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Sep 27, 2023
  • Number of updates: 58
  • Update frequency: every 43.9 days
  • Top authors: davidhme (50%)fatcatapps (34.48%)flippy101 (13.79%)RyanNovotny (6.9%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 6,165 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.96MB] [CPU: ▲2.03ms] Passed 4 tests

Server-side resources used by Mad Mimi Forms by Optin Cat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.44 ▲0.9851.00 ▲11.06
Dashboard /wp-admin4.27 ▲0.9752.86 ▲2.72
Posts /wp-admin/edit.php4.31 ▲0.9550.89 ▲4.81
Add New Post /wp-admin/post-new.php6.84 ▲0.9692.99 ▼4.85
Media Library /wp-admin/upload.php4.18 ▲0.9541.19 ▲5.42
Settings /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page4.0938.35
Upgrade to Premium /wp-admin/edit.php?post_type=easy-opt-ins&page=eoi_premium_upgrade3.9934.39
Add New /wp-admin/post-new.php?post_type=easy-opt-ins7.2878.90
All Optin Forms /wp-admin/edit.php?post_type=easy-opt-ins4.2343.67
Subscribers /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_subscribers_page4.0937.91

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 239 new files
Database: 2 new tables, 10 new options
New tables
wp_fca_eoi_activity
wp_fca_eoi_subscribers
New WordPress options
widget_recent-posts
fca_eoi_settings
widget_easy-opt-in-widget
widget_recent-comments
fca_eoi_allow_customform
db_upgraded
can_compress_scripts
theysaidso_admin_options
fca_eoi_subscribers_table_ver
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Mad Mimi Forms by Optin Cat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,097 ▲36214.67 ▲0.392.42 ▲0.6641.04 ▲0.12
Dashboard /wp-admin2,498 ▲3136.36 ▲0.48126.78 ▲22.8096.75 ▲46.31
Posts /wp-admin/edit.php2,246 ▲1572.05 ▲0.0334.20 ▼1.6533.15 ▼0.67
Add New Post /wp-admin/post-new.php6,472 ▲4,93020.60 ▲2.42879.61 ▲228.7937.67 ▼24.39
Media Library /wp-admin/upload.php1,439 ▲484.19 ▼0.01102.15 ▲4.1366.35 ▲25.50
Settings /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page1,2493.2479.6043.29
Upgrade to Premium /wp-admin/edit.php?post_type=easy-opt-ins&page=eoi_premium_upgrade1,0896.26284.49125.26
Add New /wp-admin/post-new.php?post_type=easy-opt-ins6,8547.18312.1780.69
All Optin Forms /wp-admin/edit.php?post_type=easy-opt-ins1,2612.1635.0240.35
Subscribers /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_subscribers_page9691.8526.5627.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_fca_eoi_activity
    • wp_fca_eoi_subscribers
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • fca_eoi_subscribers_table_ver
    • widget_easy-opt-in-widget
    • fca_eoi_settings
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 62× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/mad-mimi-wp/layouts/common/layout_5/layout.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mad-mimi-wp/includes/eoi-subscribers.php:27
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/mad-mimi-wp/layouts/common/layout_16/layout.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php' (include_path='.:/usr/share/php') in wp-content/plugins/mad-mimi-wp/layouts/common/layout_2/layout.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mad-mimi-wp/includes/classes/k/k.php:420
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mad-mimi-wp/includes/eoi-powerups.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php' (include_path='.:/usr/share/php') in wp-content/plugins/mad-mimi-wp/layouts/common/layout_0/layout.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php' (include_path='.:/usr/share/php') in wp-content/plugins/mad-mimi-wp/layouts/common/layout_5/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/mad-mimi-wp/layouts/common/layout_1/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/mad-mimi-wp/layouts/common/layout_0/layout.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=easy-opt-ins
    • > Deprecation (warning) in unknown
    /wp-content/plugins/mad-mimi-wp/assets/vendor/wysi/wysihtml.min.js?ver=2.5.6 9 Listener added for a synchronous 'DOMNodeRemoved' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Examples of the Mad Mimi form designs), #2 (The Mad Mimi Opt-in Form Builder), #3 (Mad Mimi Post Box), #4 (Mad Mimi Popup), #5 (Another Mad Mimi Post Box), #6 (Mad Mimi Form Analytics), #7 (The entire settings screen)
You can take inspiration from this readme.txt

mad-mimi-wp/mad-mimi-wp.php Passed 13 tests

The main PHP file in "Mad Mimi Forms by Optin Cat" ver. 2.5.6 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
The Mad Mimi Optin Cat WordPress Lets You Convert More Blog Visits Into Email Subscribers. Set It Up In 2 Minutes.

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
There were no executable files found in this plugin9,299 lines of code in 147 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,4001,0395,453
JavaScript344081891,903
CSS27145221,102
Sass201060534
HTML22170306
JSON1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity36.50
▷ Minimum class complexity1.00
▷ Maximum class complexity208.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods153
▷ Static methods149.15%
▷ Public methods12179.08%
▷ Protected methods00.00%
▷ Private methods3220.92%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
68 compressed PNG files occupy 1.28MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
layouts/screenshots/lightbox_1.png17.20KB18.74KB0.00%
layouts/screenshots/postbox_17.png10.83KB12.31KB0.00%
assets/admin/onboarding-arrow.png0.83KB1.04KB0.00%
layouts/screenshots/layout_16.png9.10KB10.50KB0.00%
layouts/screenshots/layout_15.png11.62KB13.34KB0.00%