Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▲0.22ms] 75% from 4 tests
A check of server-side resources used by DirectIQ Email Marketing
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 860.30ms on /wp-admin/admin.php?page=directiq)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 37.13 ▼5.19 |
Dashboard /wp-admin | 3.48 ▲0.17 | 46.90 ▼0.91 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.90 ▲3.73 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 88.72 ▲3.24 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.27 ▲6.83 |
General Setup /wp-admin/admin.php?page=directiq | 3.40 | 860.30 |
Server storage [IO: ▲5.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 619 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_diq_forms |
New WordPress options |
---|
widget_theysaidso_widget |
diq_recheck_authorize |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
sc_style |
response_status |
diq_rest_key |
sc_redirect_url |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by DirectIQ Email Marketing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲300 | 14.09 ▼0.37 | 11.26 ▲9.53 | 43.24 ▼8.21 |
Dashboard /wp-admin | 2,231 ▲43 | 5.87 ▲0.98 | 109.89 ▼7.48 | 77.39 ▲33.15 |
Posts /wp-admin/edit.php | 2,120 ▲52 | 1.99 ▼0.03 | 39.38 ▲3.75 | 35.60 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 17.55 ▲0.05 | 747.83 ▲48.39 | 59.10 ▲0.66 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.16 ▼0.05 | 101.66 ▼3.76 | 81.77 ▲35.04 |
General Setup /wp-admin/admin.php?page=directiq | 995 | 1.84 | 26.27 | 46.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- diq_recheck_authorize
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/directiq-wp/css/admin.php
- > /wp-content/plugins/directiq-wp/template/sidebar.php
- > /wp-content/plugins/directiq-wp/css/front.php
- 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant DIRECTIQ_PLUGIN_DIR_URL - assumed 'DIRECTIQ_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/directiq-wp/template/sidebar.php on line 7
- > PHP Notice
Undefined variable: modal_close_btn in wp-content/plugins/directiq-wp/template/fields.php on line 25
- > PHP Warning
Use of undefined constant DIRECTIQ_PLUGIN_DIR_URL - assumed 'DIRECTIQ_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/directiq-wp/template/header.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/directiq-wp/template/header.php:3
- > PHP Notice
Undefined variable: field_shortcode in wp-content/plugins/directiq-wp/template/static_fields.php on line 42
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/directiq-wp/template/header.php:3
- > PHP Notice
Undefined variable: modal_form_id in wp-content/plugins/directiq-wp/template/fields.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/directiq-wp/template/header.php:3
- > PHP Notice
Undefined variable: modal_input_field_type in wp-content/plugins/directiq-wp/template/fields.php on line 30
- > PHP Notice
Undefined variable: field_shortcode in wp-content/plugins/directiq-wp/template/static_fields.php on line 1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: Contributors not specified
directiq-wp/directiq.php 85% from 13 tests
The principal PHP file in "DirectIQ Email Marketing" v. 2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("directiq-wp.php" instead of "directiq.php")
- 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
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 detected112,663 lines of code in 603 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 318 | 8,077 | 6,726 | 71,112 |
HTML | 184 | 3,967 | 11 | 23,725 |
CSS | 82 | 2,809 | 513 | 14,047 |
PHP | 13 | 274 | 253 | 2,386 |
Markdown | 3 | 889 | 0 | 1,322 |
JSON | 1 | 0 | 0 | 47 |
SVG | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 0 | 1 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 34 | |
▷ Static methods | 21 | 61.76% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
codemirror/doc/logo.png | 9.09KB | 4.10KB | ▼ 54.95% |
images/logo.png | 0.97KB | 0.71KB | ▼ 26.81% |
codemirror/doc/yinyang.png | 4.52KB | 2.03KB | ▼ 55.19% |
images/new_logo.png | 0.79KB | 0.59KB | ▼ 25.15% |