84% single-mailchimp

Code Review | Single Mailchimp

WordPress plugin Single Mailchimp scored84%from 54 tests.

About plugin

  • Plugin page: single-mailchimp
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Feb 19, 2016
  • Number of updates: 22
  • Update frequency: every 23.6 days
  • Top authors: Jonathan Robrecht (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,575 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Single Mailchimp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.1248.92 ▼1.33
Dashboard /wp-admin3.75 ▲0.1850.29 ▼7.58
Posts /wp-admin/edit.php3.80 ▲0.1253.86 ▲1.15
Add New Post /wp-admin/post-new.php6.29 ▲0.1488.96 ▼11.81
Media Library /wp-admin/upload.php3.61 ▲0.1238.98 ▲3.28
Single Mailchimp /wp-admin/options-general.php?page=single-mailchimp-menu3.5838.13

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_single_mailchimp_widget
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Single Mailchimp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.40 ▲0.052.33 ▼0.1445.64 ▲4.44
Dashboard /wp-admin2,200 ▲235.52 ▼0.1689.06 ▲0.5038.01 ▼6.01
Posts /wp-admin/edit.php2,108 ▲82.00 ▲0.0138.07 ▼1.3934.27 ▲0.19
Add New Post /wp-admin/post-new.php1,533 ▼1223.51 ▲0.17676.27 ▼17.9753.66 ▲1.53
Media Library /wp-admin/upload.php1,411 ▲144.24 ▲0.0299.52 ▲4.5341.42 ▼0.20
Single Mailchimp /wp-admin/options-general.php?page=single-mailchimp-menu1,0922.0326.4762.04

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_single_mailchimp_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/single-mailchimp/admin/single-mailchimp-admin.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/single-mailchimp/admin/register-admin.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/single-mailchimp/admin/register-admin.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/single-mailchimp/widget.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Wordpress Editor with Single Mailchimp), #2 (Close up of Single Mailchimp Settings)
  • Plugin Name: You should set the name of your plugin on the first line ( === single-mailchimp === )
Please take inspiration from this readme.txt

single-mailchimp/single-mailchimp.php Passed 13 tests

"Single Mailchimp" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
43 characters long description:
Mailchimp Newsletterform with Single-Opt-In

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected769 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP614960492
CSS3523261
JavaScript212016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity12.50
▷ Minimum class complexity3.00
▷ Maximum class complexity22.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png70.62KB20.01KB▼ 71.66%
screenshot-2.png96.47KB27.60KB▼ 71.39%