Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.57MB] [CPU: ▲6.35ms] Passed 4 tests
A check of server-side resources used by Smart Marketing SMS and Newsletters Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.54 | 46.35 ▲3.18 |
Dashboard /wp-admin | 4.89 ▲1.59 | 70.46 ▲14.86 |
Posts /wp-admin/edit.php | 4.97 ▲1.62 | 67.49 ▲9.44 |
Add New Post /wp-admin/post-new.php | 7.47 ▲1.58 | 101.38 ▼2.07 |
Media Library /wp-admin/upload.php | 4.78 ▲1.56 | 55.22 ▲21.31 |
Account /wp-admin/admin.php?page=egoi-4-wp-account | 4.84 | 48.26 |
Server storage [IO: ▲14.88MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 260 new files
Database: 3 new tables, 16 new options
New tables |
---|
wp_egoi_lazy_request |
wp_egoi_map_fields |
wp_egoi_form_subscribers |
New WordPress options |
---|
widget_egoi4widget |
theysaidso_admin_options |
db_upgraded |
egoi_client_allow |
egoi_client |
can_compress_scripts |
egoi_api_key |
egoi_bar_sync |
egoi_transactional_email |
egoi_sync |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smart Marketing SMS and Newsletters Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,138 ▲377 | 13.75 ▼0.87 | 8.52 ▲6.48 | 27.56 ▼18.11 |
Dashboard /wp-admin | 2,436 ▲259 | 4.93 ▼0.74 | 101.78 ▲4.88 | 85.40 ▲39.00 |
Posts /wp-admin/edit.php | 2,185 ▲85 | 2.31 ▲0.27 | 36.77 ▼1.93 | 33.05 ▼3.67 |
Add New Post /wp-admin/post-new.php | 6,447 ▲4,921 | 27.66 ▲4.63 | 938.24 ▲217.89 | 38.94 ▼16.18 |
Media Library /wp-admin/upload.php | 1,480 ▲80 | 4.45 ▲0.28 | 105.60 ▲5.31 | 68.80 ▲28.02 |
Account /wp-admin/admin.php?page=egoi-4-wp-account | 1,084 | 4.04 | 67.47 | 60.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 3 tables
- wp_egoi_lazy_request
- wp_egoi_map_fields
- wp_egoi_form_subscribers
- Zombie WordPress options were found after uninstall: 16 options
- db_upgraded
- egoi_client_type
- widget_egoi4widget
- widget_recent-comments
- egoi_bar_sync
- theysaidso_admin_options
- egoi_client_allow
- egoi_transactional_email
- egoi_sync
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smart-marketing-for-wp/admin/partials/emailcampaignwidget/email_content.php
- > /wp-content/plugins/smart-marketing-for-wp/admin/partials/egoi-for-wp-common.php
- > /wp-content/plugins/smart-marketing-for-wp/admin/partials/capture/functions.php
- 41× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart-marketing-for-wp/admin/partials/egoi-for-wp-admin-header.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/smart-marketing-for-wp/admin/partials/capture/simple-forms.php:137
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smart-marketing-for-wp/admin/partials/webpush/home.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart-marketing-for-wp/admin/partials/integrations/home.php:5
- > PHP Warning
array_values() expects parameter 1 to be array, bool given in wp-content/plugins/smart-marketing-for-wp/admin/partials/capture/simple-forms.php on line 136
- > PHP Warning
The use statement with non-compound name 'MailCatcherInterface' has no effect in wp-content/plugins/smart-marketing-for-wp/includes/transactionalemail/mailer.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/smart-marketing-for-wp/admin/partials/capture/popup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/smart-marketing-for-wp/admin/partials/transactionalemail/home.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/smart-marketing-for-wp/admin/partials/capture/home.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/smart-marketing-for-wp/admin/partials/rssfeed/campaign-rss.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 75% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== smart-marketing-for-wp ===
) - Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add descriptions for screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in smart-marketing-for-wp/assets to your readme.txt
- Donate link: Invalid url: ""
smart-marketing-for-wp/egoi-for-wp.php 85% from 13 tests
"Smart Marketing SMS and Newsletters Forms" version 4.1.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("smart-marketing-for-wp.php" instead of "egoi-for-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected96,881 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 27 | 10,794 | 251 | 44,745 |
JavaScript | 39 | 4,433 | 1,762 | 19,437 |
PHP | 85 | 2,977 | 1,666 | 17,897 |
SVG | 9 | 1 | 3 | 9,846 |
PO File | 3 | 1,980 | 3,100 | 4,885 |
JSON | 2 | 0 | 0 | 71 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 52.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 402.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 442 | |
▷ Static methods | 81 | 18.33% |
▷ Public methods | 350 | 79.19% |
▷ Protected methods | 15 | 3.39% |
▷ Private methods | 77 | 17.42% |
Functions | 69 | |
▷ Named functions | 60 | 86.96% |
▷ Anonymous functions | 9 | 13.04% |
Constants | 38 | |
▷ Global constants | 4 | 10.53% |
▷ Class constants | 34 | 89.47% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
47 PNG files occupy 0.43MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/check.png | 31.48KB | 8.99KB | ▼ 71.45% |
admin/img/upgrade-icon.png | 5.87KB | 2.31KB | ▼ 60.63% |
admin/img/error.png | 23.77KB | 10.94KB | ▼ 53.98% |
admin/img/colorpicker/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
admin/img/colorpicker/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |