Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.92ms] Passed 4 tests
This is a short check of server-side resources used by MailingBoss WP Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.27 | 48.63 ▲6.49 |
Dashboard /wp-admin | 3.55 ▲0.21 | 47.40 ▼14.09 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 57.31 ▲3.26 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 88.69 ▼5.09 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 36.89 ▲0.26 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_mailingboss_wp_plugin_form_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
MailingBoss WP Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲179 | 13.51 ▼0.94 | 4.82 ▲2.72 | 40.22 ▼12.82 |
Dashboard /wp-admin | 2,240 ▲49 | 5.79 ▼0.09 | 110.32 ▲1.50 | 84.27 ▲36.90 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.02 ▼0.03 | 36.84 ▼4.64 | 34.07 ▼1.43 |
Add New Post /wp-admin/post-new.php | 6,381 ▲4,867 | 27.39 ▲9.77 | 939.05 ▲216.29 | 39.78 ▼14.51 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.20 ▼0.02 | 100.62 ▼4.35 | 76.90 ▲31.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_mailingboss_wp_plugin_form_widget
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mailingboss/public/partials/mailingboss-wp-plugin-public-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mailingboss/admin/partials/mailingboss-wp-plugin-admin-display-list.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailingboss/includes/widgets/class-mailingboss-wp-plugin-form-widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: mailingboss, email, newsletter, builderall, widget...
mailingboss/mailingboss-wp-plugin.php 85% from 13 tests
This is the main PHP file of "MailingBoss WP Plugin" version 1.0.18, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mailingboss.php" instead of "mailingboss-wp-plugin.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,685 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 450 | 1,010 | 1,428 |
JavaScript | 3 | 18 | 54 | 124 |
PO File | 1 | 29 | 34 | 73 |
CSS | 2 | 8 | 8 | 47 |
JSON | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 13 | 12.38% |
▷ Public methods | 88 | 83.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 16.19% |
Functions | 12 | |
▷ Named functions | 4 | 33.33% |
▷ Anonymous functions | 8 | 66.67% |
Constants | 7 | |
▷ Global constants | 2 | 28.57% |
▷ Class constants | 5 | 71.43% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/favicon.png | 0.62KB | 0.89KB | 0.00% |
public/img/icon-86x86.png | 5.67KB | 3.11KB | ▼ 45.28% |
public/img/icon-16x16.png | 0.62KB | 0.89KB | 0.00% |