Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.71ms] Passed 4 tests
This is a short check of server-side resources used by MTARGET Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.40 ▼3.61 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.03 ▲3.20 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.71 ▼2.48 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.51 ▼23.80 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.99 ▲3.06 |
New Form /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-widget-form | 3.27 | 30.50 |
Popup Setting /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-popup-main | 3.24 | 32.67 |
New Form /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-widget-add | 3.24 | 29.24 |
Setting /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-config | 3.27 | 31.36 |
List Form /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu | 3.24 | 31.12 |
Edit Form /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-widget-edit | 3.21 | 32.22 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 48 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mailtarget_forms |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_mailtarget_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for MTARGET Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,029 ▲272 | 14.37 ▼0.06 | 10.60 ▲8.33 | 37.20 ▼6.48 |
Dashboard /wp-admin | 2,227 ▲42 | 4.85 ▼0.97 | 100.02 ▼10.26 | 79.66 ▲35.14 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.01 ▲0.00 | 37.29 ▼1.23 | 33.78 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,697 ▲155 | 22.26 ▲3.88 | 728.43 ▲112.02 | 57.15 ▼4.57 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.24 ▲0.04 | 110.14 ▲11.02 | 45.60 ▲1.05 |
New Form /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-widget-form | 824 | 2.02 | 24.38 | 26.25 |
Popup Setting /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-popup-main | 827 | 2.18 | 24.25 | 26.15 |
New Form /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-widget-add | 823 | 2.01 | 24.21 | 22.69 |
Setting /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-config | 885 | 2.07 | 27.53 | 24.19 |
List Form /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu | 824 | 2.01 | 23.50 | 26.29 |
Edit Form /wp-admin/admin.php?page=mailtarget-form-plugin--admin-menu-widget-edit | 691 | 1.14 | 6.56 | 16.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_mailtarget_forms
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_mailtarget_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mailtarget-form/views/render/input_checkbox.php
- > /wp-content/plugins/mailtarget-form/views/render/input_multiple.php
- 54× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: row in wp-content/plugins/mailtarget-form/views/render/input_dropdown.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mailtarget-form/views/render/input_phone.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mailtarget-form/views/render/input_multiple.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailtarget-form/include/mailtarget_shortcode.php:93
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mailtarget-form/views/render/input_upload.php on line 10
- > PHP Notice
Undefined variable: error in wp-content/plugins/mailtarget-form/views/admin/error.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mailtarget-form/views/render/input_multiple.php on line 61
- > PHP Notice
Trying to get property 'data' of non-object in wp-content/plugins/mailtarget-form/views/admin/wp_form_edit.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailtarget-form/include/mailtarget_widget.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mailtarget-form/views/render/input_checkbox.php on line 17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: webform, mtarget, newsletter, subscribe, marketing...
mailtarget-form/mailtarget-form.php Passed 13 tests
Analyzing the main PHP file in "MTARGET Form" version 2.1.5
123 characters long description:
The MTARGET plugin to simplify embedding MTARGET Form in your post or as widget, also easily to set MTARGET Forms as popup.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,157 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 170 | 479 | 2,021 |
CSS | 3 | 2 | 0 | 1,017 |
LESS | 1 | 159 | 5 | 1,003 |
JavaScript | 3 | 1 | 47 | 74 |
Markdown | 1 | 12 | 0 | 31 |
SVG | 2 | 0 | 0 | 6 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 37.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 6 | 13.04% |
▷ Public methods | 42 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.70% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/wp-icon-compose.png | 0.51KB | 0.60KB | 0.00% |
assets/image/mt-icon-32x32.png | 1.16KB | 1.60KB | 0.00% |
assets/image/mt-icon-20x20.png | 0.87KB | 1.35KB | 0.00% |
assets/image/wp-icon.png | 0.81KB | 0.71KB | ▼ 12.33% |