Benchmarks
Plugin footprint 58% 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
- This plugin did not install gracefully
- > Notice in wp-content/plugins/emma-emarketing-plugin/widget/class-emma-widget.php+120
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.41MB] [CPU: ▼4.45ms] Passed 4 tests
This is a short check of server-side resources used by Emma for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 44.42 ▲0.98 |
Dashboard /wp-admin | 3.75 ▲0.45 | 52.90 ▼4.44 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 51.41 ▲3.22 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 90.81 ▼13.27 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 38.51 ▼1.08 |
Emma for WordPress /wp-admin/options-general.php?page=emma_plugin_options | 3.56 | 33.65 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 11 new options
New WordPress options |
---|
emma_advanced_settings |
can_compress_scripts |
widget_recent-comments |
emma_account_information |
emma_form_setup |
widget_emma-widget |
widget_theysaidso_widget |
theysaidso_admin_options |
emma_form_custom |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Emma for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.27 ▲0.08 | 1.97 ▲0.04 | 43.47 ▼0.55 |
Dashboard /wp-admin | 2,209 ▲29 | 5.61 ▼0.09 | 98.52 ▲5.81 | 43.21 ▼1.79 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.03 ▲0.06 | 35.06 ▼4.98 | 33.45 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 23.12 ▲0.21 | 686.39 ▲38.12 | 70.30 ▲17.35 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.20 ▲0.00 | 103.55 ▲5.70 | 43.51 ▼0.91 |
Emma for WordPress /wp-admin/options-general.php?page=emma_plugin_options | 913 | 2.03 | 27.56 | 25.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_emma-widget
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=emma_plugin_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=emma_plugin_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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 take a closer look at the following
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include_once(EMMA_EMARKETING_PATH/class-emma-form.php): failed to open stream: No such file or directory in wp-content/plugins/emma-emarketing-plugin/shortcode/class-emma-shortcode.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/emma-emarketing-plugin/shortcode/class-emma-shortcode.php:6
- > PHP Warning
Use of undefined constant EMMA_EMARKETING_PATH - assumed 'EMMA_EMARKETING_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emma-emarketing-plugin/widget/class-emma-widget.php on line 14
- > PHP Warning
include_once(): Failed opening 'EMMA_EMARKETING_PATH/class-emma-style.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/emma-emarketing-plugin/widget/class-emma-widget.php on line 14
- > PHP Warning
include_once(EMMA_EMARKETING_PATH/class-emma-style.php): failed to open stream: No such file or directory in wp-content/plugins/emma-emarketing-plugin/widget/class-emma-widget.php on line 14
- > PHP Warning
include_once(): Failed opening 'EMMA_EMARKETING_PATH/class-emma-style.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/emma-emarketing-plugin/widget/class-emma-widget.php on line 14
- > PHP Warning
include_once(): Failed opening 'EMMA_EMARKETING_PATH/class-emma-form.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/emma-emarketing-plugin/shortcode/class-emma-shortcode.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/emma-emarketing-plugin/widget/class-emma-widget.php:16
- > PHP Warning
Use of undefined constant EMMA_EMARKETING_PATH - assumed 'EMMA_EMARKETING_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emma-emarketing-plugin/widget/class-emma-widget.php on line 14
- > PHP Warning
include_once(EMMA_EMARKETING_PATH/class-emma-style.php): failed to open stream: No such file or directory in wp-content/plugins/emma-emarketing-plugin/widget/class-emma-widget.php on line 14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: subscription, plugin, form, widget, emma...
emma-emarketing-plugin/emma-for-wordpress.php 92% from 13 tests
The entry point to "Emma for WordPress" version 1.3.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("emma-emarketing-plugin.php" instead of "emma-for-wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,864 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 605 | 470 | 1,684 |
JavaScript | 2 | 44 | 20 | 131 |
CSS | 1 | 13 | 1 | 49 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 13.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 8 | 7.55% |
▷ Public methods | 106 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Emma_Logo_Horizontal.png | 17.78KB | 6.92KB | ▼ 61.10% |
assets/images/emma_powered_by_logo.png | 2.14KB | 1.98KB | ▼ 7.54% |
assets/images/e2ma_logo_35x33.png | 2.00KB | 1.86KB | ▼ 7.45% |
assets/images/logo_32x25.png | 1.54KB | 1.30KB | ▼ 15.50% |
assets/images/rss_20x20.png | 0.88KB | 0.72KB | ▼ 17.71% |