84% auto-mailchimp-popup

Code Review | Auto Mailchimp Popup

WordPress plugin Auto Mailchimp Popup scored 84% from 54 tests.

About plugin

  • Plugin page: auto-mailchimp-popup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Dec 22, 2016
  • Latest release: Dec 23, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: atomixpp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼139.83ms] Passed 4 tests

A check of server-side resources used by Auto Mailchimp Popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.2237.23 ▲12.46
Dashboard /wp-admin3.26 ▲0.2151.67 ▲9.66
Posts /wp-admin/edit.php3.31 ▲0.2143.24 ▼1.36
Add New Post /wp-admin/post-new.php5.54 ▲0.1195.22 ▼562.58
Media Library /wp-admin/upload.php3.12 ▲0.1132.64 ▼5.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options
bs_mail_popup_basic

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Mailchimp Popup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,142 ▲54618.46 ▲2.6216.94 ▲8.6143.99 ▼8.78
Dashboard /wp-admin3,211 ▲2778.26 ▲2.33163.72 ▲17.26114.95 ▲8.76
Posts /wp-admin/edit.php3,006 ▲2674.39 ▲1.7087.10 ▲20.5093.51 ▲5.21
Add New Post /wp-admin/post-new.php1,700 ▲2818.96 ▲0.22366.84 ▲16.18108.63 ▼3.22
Media Library /wp-admin/upload.php1,849 ▲394.90 ▼0.11114.06 ▼36.17122.14 ▼2.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • bs_mail_popup_basic

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 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/auto-mailchimp-popup/shortcode.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-mailchimp-popup/shortcode.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: A description for screenshot #2 is required in auto-mailchimp-popup/assets to your readme.txt
  • Contributors: Plugin contributors not specified
The official readme.txt might help

auto-mailchimp-popup/auto-mailchimp-popup.php Passed 13 tests

The primary PHP file in "Auto Mailchimp Popup" version 1.0 is used by WordPress to initiate all plugin functionality
67 characters long description:
Auto Mailchimp Popup is Mailchimp based Popup Plugin for Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,391 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4165224585
JavaScript3142199473
CSS213546333

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.50
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods45
▷ Static methods12.22%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/cuponbox.png11.79KB6.05KB▼ 48.66%