Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.19MB] [CPU: ▼14.63ms] Passed 4 tests
This is a short check of server-side resources used by Email Marketing 4Dem
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.61 ▲0.88 | 49.78 ▲8.70 |
Dashboard /wp-admin | 4.43 ▲0.87 | 59.11 ▲0.14 |
Posts /wp-admin/edit.php | 4.55 ▲0.87 | 55.34 ▲0.80 |
Add New Post /wp-admin/post-new.php | 4.31 ▼1.84 | 44.74 ▼68.17 |
Media Library /wp-admin/upload.php | 4.36 ▲0.87 | 49.03 ▲9.69 |
E-commerce Plus /wp-admin/admin.php?page=adv_dem_ecommerce_plus | 4.57 | 40.43 |
Gruppi di operazioni /wp-admin/admin.php?page=adv_dem_batch_table | 4.34 | 41.25 |
Configura API Key /wp-admin/admin.php?page=adv_dem | 4.38 | 41.18 |
Sincronizza Utenti /wp-admin/admin.php?page=adv_dem_sync_users | 4.40 | 41.43 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_adv_dem_carts |
wp_adv_dem_product_attributes |
wp_adv_dem_batches |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_adv_dem_widget |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
adv_dem |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Email Marketing 4Dem
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲133 | 14.77 ▲0.02 | 5.46 ▲3.50 | 42.04 ▼1.79 |
Dashboard /wp-admin | 2,222 ▲45 | 5.64 ▲0.09 | 84.30 ▼6.22 | 87.19 ▲42.70 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 1.97 ▼0.04 | 36.15 ▼1.42 | 34.43 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,562 ▲28 | 23.37 ▲0.09 | 757.32 ▲117.78 | 35.88 ▼20.32 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.25 ▼0.03 | 100.51 ▼2.70 | 76.84 ▲29.30 |
E-commerce Plus /wp-admin/admin.php?page=adv_dem_ecommerce_plus | 863 | 1.75 | 30.09 | 28.98 |
Gruppi di operazioni /wp-admin/admin.php?page=adv_dem_batch_table | 832 | 2.11 | 29.82 | 27.97 |
Configura API Key /wp-admin/admin.php?page=adv_dem | 975 | 2.12 | 30.28 | 34.52 |
Sincronizza Utenti /wp-admin/admin.php?page=adv_dem_sync_users | 843 | 1.91 | 31.41 | 29.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_adv_dem_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adv_dem_sync_users
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=adv_dem_ecommerce_plus
- > Notice in wp-content/plugins/email-marketing-4dem/admin/class-adv_dem-admin.php+305
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=adv_dem_ecommerce_plus
- > Warning in wp-content/plugins/email-marketing-4dem/admin/class-adv_dem-admin.php+305
count(): Parameter must be an array or an object that implements Countable
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× PHP files output text when accessed directly:
- > /wp-content/plugins/email-marketing-4dem/public/partials/adv_dem-public-display.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/email-marketing-4dem/includes/class-adv_batch_table.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/email-marketing-4dem/admin/partials/adv_dem-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-marketing-4dem/admin/partials/adv_dem-admin-display-sincronizzazione-utenti.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/email-marketing-4dem/includes/class-adv_dem-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-marketing-4dem/admin/partials/adv_dem-admin-display-batch-table.php:21
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-marketing-4dem/includes/class-adv_batch_table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/email-marketing-4dem/includes/class-adv_batch_table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/email-marketing-4dem/admin/partials/adv_dem-admin-display-ecommerce-plus.php:22
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: Please describe screenshot #1 in email-marketing-4dem/assets to your readme.txt
email-marketing-4dem/adv_dem.php 77% from 13 tests
This is the main PHP file of "Email Marketing 4Dem" version 2.0.4, 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: It is recommended to name the main PHP file as the plugin slug ("email-marketing-4dem.php" instead of "adv_dem.php")
- Text Domain: Please use dashes and lowercase characters for text domains
- Description: Please keep the plugin description shorter than 140 characters (currently 252 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected5,698 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 727 | 1,754 | 4,687 |
CSS | 3 | 46 | 33 | 505 |
JavaScript | 6 | 112 | 161 | 383 |
PO File | 2 | 36 | 36 | 118 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 26 | 12.94% |
▷ Public methods | 165 | 82.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 36 | 17.91% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo_plugin.png | 3.06KB | 1.17KB | ▼ 61.87% |
admin/images/icon.png | 0.63KB | 0.32KB | ▼ 49.46% |
admin/images/icon_plugin.png | 1.45KB | 0.79KB | ▼ 45.94% |
admin/images/icon_plugin_wp_4dem.png | 1.45KB | 0.79KB | ▼ 45.94% |
admin/images/logo_4Dem_plugin.png | 3.06KB | 1.17KB | ▼ 61.87% |