Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.25ms] Passed 4 tests
This is a short check of server-side resources used by MailerLite - Signup forms (official)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 35.81 ▼6.64 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.60 ▼4.51 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 50.41 ▲3.02 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 93.78 ▼8.88 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 38.28 ▲3.17 |
Status /wp-admin/admin.php?page=mailerlite_status | 3.37 | 33.70 |
Settings /wp-admin/admin.php?page=mailerlite_settings | 3.38 | 35.47 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 98 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mailerlite_forms |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_mailerlite_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MailerLite - Signup forms (official)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.28 ▼1.10 | 3.75 ▲1.68 | 39.60 ▼3.77 |
Dashboard /wp-admin | 2,235 ▲43 | 5.03 ▲0.10 | 99.61 ▼9.38 | 80.01 ▲39.83 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 1.97 ▼0.06 | 39.09 ▼0.59 | 35.81 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6,610 ▲5,068 | 29.66 ▲11.33 | 866.56 ▲239.58 | 37.71 ▼16.05 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.21 ▼0.05 | 97.18 ▼1.89 | 68.42 ▲24.18 |
Status /wp-admin/admin.php?page=mailerlite_status | 963 | 2.03 | 26.00 | 25.94 |
Settings /wp-admin/admin.php?page=mailerlite_settings | 871 | 2.01 | 25.20 | 32.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 does not fully uninstall, leaving 1 table in the database
- wp_mailerlite_forms
- The uninstall procedure has failed, leaving 7 options in the database
- widget_mailerlite_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function MailerLiteForms\\plugin_dir_path() in wp-content/plugins/official-mailerlite-sign-up-forms/mailerlite.php:30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/official-mailerlite-sign-up-forms/src/Modules/Widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg), #5 (screenshot-5.jpg), #6 (screenshot-6.jpg)
official-mailerlite-sign-up-forms/mailerlite.php 85% from 13 tests
The main PHP file in "MailerLite - Signup forms (official)" ver. 1.6.13 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("official-mailerlite-sign-up-forms.php" instead of "mailerlite.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,609 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 875 | 938 | 3,392 |
PO File | 4 | 413 | 850 | 1,037 |
JavaScript | 34 | 49 | 123 | 1,034 |
CSS | 2 | 35 | 1 | 141 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 1 | 2.56% |
▷ Concrete classes | 38 | 97.44% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 41 | 27.89% |
▷ Public methods | 119 | 80.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 28 | 19.05% |
Functions | 12 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 12 | 100.00% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 100.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/icon.png | 2.11KB | 0.17KB | ▼ 92.07% |
assets/image/shortcode.png | 2.93KB | 0.35KB | ▼ 88.17% |
assets/image/custom_form.png | 12.23KB | 3.12KB | ▼ 74.53% |
assets/image/mailerlite_form.png | 12.59KB | 3.34KB | ▼ 73.44% |