68% mailcamp

Code Review | MailCamp

WordPress plugin MailCamp scored68%from 54 tests.

About plugin

  • Plugin page: mailcamp
  • Plugin version: 1.5.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2018
  • Latest release: Sep 11, 2023
  • Number of updates: 66
  • Update frequency: every 27.3 days
  • Top authors: mailcamp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,044 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.40MB] [CPU: ▲0.66ms] Passed 4 tests

A check of server-side resources used by MailCamp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3243.23 ▲5.50
Dashboard /wp-admin3.78 ▲0.4354.75 ▼4.45
Posts /wp-admin/edit.php3.83 ▲0.4753.97 ▲6.66
Add New Post /wp-admin/post-new.php6.32 ▲0.4395.40 ▼1.52
Media Library /wp-admin/upload.php3.64 ▲0.4137.23 ▲3.10
MailCamp RSS /wp-admin/admin.php?page=mailcamp-rss3.6133.98
MailCamp for WooCommerce /wp-admin/admin.php?page=mailcamp-wc3.6136.75
MailCamp for WP Settings /wp-admin/admin.php?page=mailcamp3.6031.68
MailCamp Form /wp-admin/admin.php?page=mailcamp-form3.6739.70

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_mailcamp_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for MailCamp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲20013.60 ▼0.8010.44 ▲8.6241.61 ▲1.01
Dashboard /wp-admin2,232 ▲414.95 ▼0.08107.91 ▼0.9575.54 ▲30.95
Posts /wp-admin/edit.php2,130 ▲412.05 ▲0.0837.97 ▼3.4034.78 ▼3.99
Add New Post /wp-admin/post-new.php1,549 ▲2717.68 ▼5.81661.61 ▲9.1257.87 ▼4.19
Media Library /wp-admin/upload.php1,423 ▲354.15 ▼0.06116.19 ▲20.0647.55 ▲7.01
MailCamp RSS /wp-admin/admin.php?page=mailcamp-rss8072.2025.5123.89
MailCamp for WooCommerce /wp-admin/admin.php?page=mailcamp-wc8481.7626.2828.25
MailCamp for WP Settings /wp-admin/admin.php?page=mailcamp8491.8523.9035.41
MailCamp Form /wp-admin/admin.php?page=mailcamp-form1,6086.87136.97104.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/mailcamp/uninstall.php+33
    Undefined index: plugin
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_mailcamp_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mailcamp/public/partials/mailcamp-public-display.php
    • > /wp-content/plugins/mailcamp/admin/partials/mailcamp-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailcamp/includes/class-mailcamp-widget.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: signup, email, newsletter, widget, mailcamp...

mailcamp/mailcamp.php Passed 13 tests

"MailCamp" version 1.5.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
MailCamp form plugin. A simple plugin that adds a highly effective subscription form to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,659 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP175691,0382,011
PO File11167323
CSS32521129
Markdown1420107
JavaScript21411589

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.78
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods56
▷ Static methods35.36%
▷ Public methods5089.29%
▷ Protected methods00.00%
▷ Private methods610.71%
Functions36
▷ Named functions3597.22%
▷ Anonymous functions12.78%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/favicon.png0.56KB0.54KB▼ 2.98%