94% mcpopup-popup-form-for-mailchimp

Code Review | McPopup - Popup Form for Mailchimp

WordPress plugin McPopup - Popup Form for Mailchimp scored 94% from 54 tests.

About plugin

  • Plugin page: mcpopup-popup-for...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.8.1
  • First release: Apr 8, 2019
  • Latest release: Aug 12, 2020
  • Number of updates: 18
  • Update frequency: every 28.1 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,267 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by McPopup - Popup Form for Mailchimp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.1736.37 ▲2.95
Dashboard /wp-admin3.26 ▲0.2147.65 ▲4.07
Posts /wp-admin/edit.php3.37 ▲0.2647.70 ▲0.31
Add New Post /wp-admin/post-new.php5.62 ▲0.1988.47 ▼572.69
Media Library /wp-admin/upload.php3.20 ▲0.2037.14 ▲2.00
Premium Extension /wp-admin/admin.php?page=mcpup_premium_extension3.1730.20
Settings /wp-admin/admin.php?page=mcpup_general_settings3.1732.54

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 12 new options
New WordPress options
mcpup_settings_reset
mcpup_lname
mcpup_email_text
mcpup_submit_text
mcpup_c_time
mcpup_promise
mcpup_fname
mcpup_fname_text
mcpup_lname_text
mcpup_h_title
...

Browser metrics Passed 4 tests

McPopup - Popup Form for Mailchimp: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,916 ▲32016.44 ▲0.8518.94 ▲9.8946.09 ▲0.68
Dashboard /wp-admin3,007 ▲736.02 ▲0.12141.21 ▼11.83104.65 ▼4.04
Posts /wp-admin/edit.php2,777 ▲382.71 ▲0.0163.55 ▼1.3681.42 ▼6.19
Add New Post /wp-admin/post-new.php1,898 ▲28319.18 ▼2.22421.99 ▲106.35107.80 ▼1.04
Media Library /wp-admin/upload.php1,845 ▲385.01 ▼0.00157.96 ▼14.22121.59 ▲3.82
Premium Extension /wp-admin/admin.php?page=mcpup_premium_extension1,0802.1065.9670.34
Settings /wp-admin/admin.php?page=mcpup_general_settings1,5142.3558.6179.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 21× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/mcpopup-popup-form-for-mailchimp.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/uninstall.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/form/css/index.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/admin/extension.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/admin/settings.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/form/form.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/admin/menu-icon/font/index.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/index.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/admin/default-options.php
    • > /wp-content/plugins/mcpopup-popup-form-for-mailchimp/admin/menu-icon/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: newsletter, subscription, mailing list, email marketing, mailchimp

mcpopup-popup-form-for-mailchimp/mcpopup-popup-form-for-mailchimp.php 92% from 13 tests

This is the main PHP file of "McPopup - Popup Form for Mailchimp" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 237 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,115 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1021822719
CSS3380326
JavaScript221558
SVG10012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.19MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/premium-extension.png114.15KB125.20KB0.00%
form/images/bg.png1.31KB0.32KB▼ 76.00%
form/images/close.png0.92KB0.86KB▼ 6.08%
admin/images/wpengine-delete.png33.03KB33.19KB0.00%
admin/images/wpsc-delete.png21.34KB21.21KB▼ 0.62%