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.30MB] [CPU: ▼5.42ms] Passed 4 tests
An overview of server-side resources used by Everlytic for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 37.38 ▼1.98 |
Dashboard /wp-admin | 3.63 ▲0.28 | 45.87 ▼15.05 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 48.95 ▲0.95 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 83.09 ▼5.58 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 50.87 ▲17.18 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 44 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ev_cart_log |
wp_ev_product_tracking |
New WordPress options |
---|
widget_theysaidso_widget |
ev_db_version |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Everlytic for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.27 ▼1.11 | 1.76 ▼0.18 | 41.89 ▼1.85 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼1.13 | 102.20 ▼5.50 | 39.43 ▼4.50 |
Posts /wp-admin/edit.php | 2,068 ▼18 | 2.02 ▼0.04 | 37.32 ▲2.09 | 32.82 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 23.39 ▲5.26 | 675.20 ▲54.03 | 55.65 ▲4.45 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.29 ▲0.07 | 106.03 ▲7.62 | 46.11 ▲2.22 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/EvPluginDeactivator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Coupons/EvCouponRepository.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Product/EvProducts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/EvPluginActivator.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Coupons/EvCoupons.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/index.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Product/EvFeaturedProducts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/everlytic/src/Events/AbandonedCart/EvCart.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: ecommerce, email, evelytic, workflows
everlytic/index.php 85% from 13 tests
"Everlytic for WooCommerce" version 1.8.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- 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
- Main file name: The principal plugin file should be the same as the plugin slug ("everlytic.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,088 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 303 | 433 | 1,887 |
SVG | 2 | 0 | 2 | 86 |
CSS | 2 | 9 | 9 | 59 |
YAML | 1 | 1 | 0 | 51 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 10 | 7.09% |
▷ Public methods | 109 | 77.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 22.70% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/logo.png | 2.88KB | 2.93KB | 0.00% |