Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼3.41ms] Passed 4 tests
A check of server-side resources used by emfluence Marketing Platform
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.30 | 38.35 ▼3.06 |
Dashboard /wp-admin | 3.67 ▲0.28 | 57.37 ▼7.24 |
Posts /wp-admin/edit.php | 3.78 ▲0.38 | 54.39 ▲3.90 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.32 | 94.51 ▼6.18 |
Media Library /wp-admin/upload.php | 3.59 ▲0.32 | 41.77 ▲2.86 |
emfluence Marketing Platform /wp-admin/options-general.php?page=emfluence_emailer | 3.56 | 37.17 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_emfluence_email_signup |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for emfluence Marketing Platform
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.24 ▼0.00 | 1.67 ▲0.03 | 45.03 ▲3.29 |
Dashboard /wp-admin | 2,196 ▲22 | 5.58 ▼0.02 | 82.44 ▼7.62 | 41.88 ▲1.42 |
Posts /wp-admin/edit.php | 2,083 ▼14 | 1.96 ▲0.02 | 33.76 ▼1.56 | 38.99 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.31 ▼0.25 | 677.51 ▼18.64 | 50.89 ▼6.68 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.25 ▲0.04 | 95.37 ▼7.01 | 44.08 ▼2.97 |
emfluence Marketing Platform /wp-admin/options-general.php?page=emfluence_emailer | 883 | 2.00 | 22.00 | 29.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_emfluence_email_signup
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-emfluence/libraries/emfl_platform_api/example.php
- > /wp-content/plugins/wp-emfluence/libraries/emfl_platform_api/tests.php
- > /wp-content/plugins/wp-emfluence/theme/success.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-emfluence/inc/woocommerce.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-emfluence/inc/store_locator.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-emfluence/inc/recaptcha.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-emfluence/inc/discount_code.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-emfluence/admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-emfluence/emfluence.php:36
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-emfluence/widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Widget edit screen. Enter your widget title and description, customize your Submit Button text,), #2 (Widget edit screen. Choose what groups your new contacts should be added to. The group names), #3 (Widget edit screen. Choose from the standard set of fields (First Name, Last Name, City, State,)
wp-emfluence/emfluence.php 85% from 13 tests
This is the main PHP file of "emfluence Marketing Platform" version 2.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-emfluence.php" instead of "emfluence.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,455 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 236 | 276 | 1,733 |
Sass | 3 | 21 | 0 | 524 |
Pascal | 9 | 113 | 481 | 495 |
JavaScript | 3 | 33 | 17 | 238 |
CSS | 2 | 228 | 32 | 234 |
HTML | 2 | 45 | 11 | 202 |
Markdown | 2 | 14 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 48.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 37 | 61.67% |
▷ Protected methods | 23 | 38.33% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 18 | 85.71% |
▷ Anonymous functions | 3 | 14.29% |
Constants | 3 | |
▷ Global constants | 3 | 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
9 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 18.28KB | 8.19KB | ▼ 55.17% |
css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
screenshot-3.png | 24.18KB | 9.86KB | ▼ 59.24% |
screenshot-1.png | 28.80KB | 12.38KB | ▼ 57.02% |
css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |