Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > 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.00MB] [CPU: ▼11.53ms] Passed 4 tests
This is a short check of server-side resources used by Email Marketing Integration Adv
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.71 | 44.31 ▼3.35 |
Dashboard /wp-admin | 4.01 ▲0.70 | 62.55 ▲7.97 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 61.96 ▲9.42 |
Add New Post /wp-admin/post-new.php | 3.82 ▼2.07 | 41.65 ▼56.17 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 42.99 ▲5.43 |
E-commerce Plus /wp-admin/admin.php?page=adv_dem_ecommerce_plus | 4.08 | 34.57 |
Gruppi di operazioni /wp-admin/admin.php?page=adv_dem_batch_table | 3.85 | 43.49 |
Sincronizza Utenti /wp-admin/admin.php?page=adv_dem_sync_users | 3.91 | 41.62 |
Configura API Key /wp-admin/admin.php?page=adv_dem | 3.89 | 39.15 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_adv_dem_carts |
wp_adv_dem_product_attributes |
wp_adv_dem_batches |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_adv_dem_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Email Marketing Integration Adv
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲220 | 13.91 ▼0.68 | 8.97 ▲6.81 | 38.49 ▼2.37 |
Dashboard /wp-admin | 2,248 ▲60 | 4.93 ▼0.91 | 111.83 ▼29.24 | 73.59 ▲21.39 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.04 ▲0.03 | 43.19 ▲1.97 | 43.85 ▲9.89 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 21.01 ▼2.34 | 694.47 ▲15.97 | 28.35 ▼44.24 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.21 ▲0.01 | 110.16 ▼9.20 | 73.71 ▲27.61 |
E-commerce Plus /wp-admin/admin.php?page=adv_dem_ecommerce_plus | 827 | 1.80 | 36.32 | 29.85 |
Gruppi di operazioni /wp-admin/admin.php?page=adv_dem_batch_table | 823 | 2.12 | 37.49 | 35.21 |
Sincronizza Utenti /wp-admin/admin.php?page=adv_dem_sync_users | 831 | 1.72 | 32.42 | 31.23 |
Configura API Key /wp-admin/admin.php?page=adv_dem | 966 | 2.15 | 33.62 | 37.18 |
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
Please fix the following items
- 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_adv_dem_widget
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- > 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-integration-adv/admin/class-adv_dem-admin.php+287
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-integration-adv/admin/class-adv_dem-admin.php+287
count(): Parameter must be an array or an object that implements Countable
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adv_dem
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adv_dem
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adv_dem
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adv_dem
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/email-marketing-integration-adv/public/partials/adv_dem-public-display.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > 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-integration-adv/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-integration-adv/admin/partials/adv_dem-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/email-marketing-integration-adv/admin/partials/adv_dem-admin-display-ecommerce-plus.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-marketing-integration-adv/admin/partials/adv_dem-admin-display-batch-table.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-marketing-integration-adv/admin/partials/adv_dem-admin-display-sincronizzazione-utenti.php:20
- > 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-integration-adv/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-integration-adv/includes/class-adv_batch_table.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/email-marketing-integration-adv/includes/class-adv_dem-widget.php:5
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Contributors: Contributors not specified
email-marketing-integration-adv/adv_dem.php 77% from 13 tests
This is the main PHP file of "Email Marketing Integration Adv" version 1.1.0, 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: The principal plugin file should be the same as the plugin slug ("email-marketing-integration-adv.php" instead of "adv_dem.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,756 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 538 | 1,309 | 3,745 |
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
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 30.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 3 | 1.92% |
▷ Public methods | 139 | 89.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 10.90% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in 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/logo_4Dem_plugin.png | 3.06KB | 1.17KB | ▼ 61.87% |
admin/images/icon_plugin_wp_4dem.png | 1.45KB | 0.79KB | ▼ 45.94% |
admin/images/icon.png | 0.63KB | 0.32KB | ▼ 49.46% |
admin/images/icon_plugin.png | 1.45KB | 0.79KB | ▼ 45.94% |