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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 43.23 ▲5.50 |
Dashboard /wp-admin | 3.78 ▲0.43 | 54.75 ▼4.45 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 53.97 ▲6.66 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 95.40 ▼1.52 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 37.23 ▲3.10 |
MailCamp RSS /wp-admin/admin.php?page=mailcamp-rss | 3.61 | 33.98 |
MailCamp for WooCommerce /wp-admin/admin.php?page=mailcamp-wc | 3.61 | 36.75 |
MailCamp for WP Settings /wp-admin/admin.php?page=mailcamp | 3.60 | 31.68 |
MailCamp Form /wp-admin/admin.php?page=mailcamp-form | 3.67 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 13.60 ▼0.80 | 10.44 ▲8.62 | 41.61 ▲1.01 |
Dashboard /wp-admin | 2,232 ▲41 | 4.95 ▼0.08 | 107.91 ▼0.95 | 75.54 ▲30.95 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.05 ▲0.08 | 37.97 ▼3.40 | 34.78 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,549 ▲27 | 17.68 ▼5.81 | 661.61 ▲9.12 | 57.87 ▼4.19 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.15 ▼0.06 | 116.19 ▲20.06 | 47.55 ▲7.01 |
MailCamp RSS /wp-admin/admin.php?page=mailcamp-rss | 807 | 2.20 | 25.51 | 23.89 |
MailCamp for WooCommerce /wp-admin/admin.php?page=mailcamp-wc | 848 | 1.76 | 26.28 | 28.25 |
MailCamp for WP Settings /wp-admin/admin.php?page=mailcamp | 849 | 1.85 | 23.90 | 35.41 |
MailCamp Form /wp-admin/admin.php?page=mailcamp-form | 1,608 | 6.87 | 136.97 | 104.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 569 | 1,038 | 2,011 |
PO File | 1 | 116 | 7 | 323 |
CSS | 3 | 25 | 21 | 129 |
Markdown | 1 | 42 | 0 | 107 |
JavaScript | 2 | 14 | 115 | 89 |
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 code | 0.41 |
Average class complexity | 15.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 3 | 5.36% |
▷ Public methods | 50 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.71% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/favicon.png | 0.56KB | 0.54KB | ▼ 2.98% |