Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/eea-promotions-restrict-to-email/eea-promotions-restrict-to-email.php+47
Use of undefined constant EVENT_ESPRESSO_UPLOAD_DIR - assumed 'EVENT_ESPRESSO_UPLOAD_DIR' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.04ms] Passed 4 tests
Analyzing server-side resources used by Promotions Restrict to Email for Event Espresso
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.13 ▼4.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.22 ▼2.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.70 ▼9.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.55 ▼21.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.01 ▼5.15 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Promotions Restrict to Email for Event Espresso
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.17 ▼0.38 | 1.85 ▲0.24 | 47.21 ▲9.22 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.04 | 87.40 ▼5.26 | 36.33 ▼3.36 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.00 | 35.18 ▼2.39 | 34.05 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▲0.13 | 694.33 ▲24.76 | 51.98 ▲3.07 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.04 | 102.69 ▼11.62 | 45.46 ▼3.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/eea-promotions-restrict-to-email/EED_Promotions_Restrict_to_Email.module.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eea-promotions-restrict-to-email/eea-promotions-restrict-to-email.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/eea-promotions-restrict-to-email/templates/promotion_restrict_to_email_form.template.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: promotions, event espresso
eea-promotions-restrict-to-email/eea-promotions-restrict-to-email.php Passed 13 tests
The entry point to "Promotions Restrict to Email for Event Espresso" version 1.0.1 is a PHP file that has certain tags in its header comment area
86 characters long description:
Allows the Event Espresso Promotions Addon to be limited to specific e-mail addresses.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin248 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 60 | 179 | 248 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 13 | |
▷ Static methods | 9 | 69.23% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin