Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.33ms] Passed 4 tests
Analyzing server-side resources used by MP Automate Lite for MailPoet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.94 ▲5.87 |
Dashboard /wp-admin | 3.32 ▼0.03 | 48.68 ▼13.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.90 ▲0.82 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.38 ▼10.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.96 ▲6.75 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for MP Automate Lite for MailPoet
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.24 ▼0.13 | 1.64 ▲0.12 | 44.39 ▲3.45 |
Dashboard /wp-admin | 2,201 ▲21 | 5.55 ▼0.11 | 82.99 ▼2.00 | 39.06 ▼2.69 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.01 | 36.58 ▼0.10 | 35.43 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.51 ▲0.51 | 676.94 ▲74.34 | 61.45 ▲4.00 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.26 ▲0.06 | 92.13 ▼10.47 | 44.98 ▼2.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp-automate-lite-for-mailpoet/includes/class-mpa-lite-handler.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mp-automate-lite-for-mailpoet/templates/mpa-lite-upgrade.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mp-automate-lite-for-mailpoet/templates/mpa-lite-log.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mp-automate-lite-for-mailpoet/templates/mpa-lite-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp-automate-lite-for-mailpoet/includes/mpa-lite-scheduler.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
7 plugin tags: multiple lists, mailpoet, manage subscribers automatically, automate subscriber management, wysija...
mp-automate-lite-for-mailpoet/mp-automate-lite.php 85% from 13 tests
"MP Automate Lite for MailPoet" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mp-automate-lite-for-mailpoet.php" instead of "mp-automate-lite.php")
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
Everything looks great! No dangerous files found in this plugin672 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 62 | 92 | 515 |
JavaScript | 1 | 7 | 4 | 81 |
CSS | 1 | 10 | 4 | 62 |
PO File | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot 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.32 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin