Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.41ms] Passed 4 tests
Server-side resources used by Automizely Popup - Email Pop Up, Sales Pop Up, Exit Intent Pop Up, Upsell Pop Up, Cart Abandonment Pop Up
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 44.41 ▼2.72 |
Dashboard /wp-admin | 3.45 ▲0.14 | 58.41 ▼2.45 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 62.00 ▼0.41 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 119.63 ▲8.87 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 43.01 ▼0.04 |
Server storage [IO: ▲2.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Automizely Popup - Email Pop Up, Sales Pop Up, Exit Intent Pop Up, Upsell Pop Up, Cart Abandonment Pop Up
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.82 ▲0.23 | 1.99 ▲0.03 | 50.17 ▼0.38 |
Dashboard /wp-admin | 2,221 ▲33 | 5.82 ▲0.92 | 124.97 ▼5.39 | 75.53 ▲32.12 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.16 ▲0.14 | 39.33 ▼9.76 | 38.61 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,547 ▲27 | 21.08 ▼2.08 | 834.64 ▲115.53 | 72.64 ▲10.91 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.13 ▼0.12 | 114.11 ▼7.38 | 89.61 ▲27.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- automizely_script_tags
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'AM_REST_Controller' not found in wp-content/plugins/automizely-marketing/includes/api/marketing/v1/class-am-mt-rest-settings-controller.php:10
- > PHP Warning
include(AUTOMIZELY_MARKETING_PATH/includes/class-am-rest-controller.php): failed to open stream: No such file or directory in wp-content/plugins/automizely-marketing/includes/api/marketing/v1/class-am-mt-rest-settings-controller.php on line 5
- > PHP Warning
include(): Failed opening 'AUTOMIZELY_MARKETING_PATH/includes/class-am-rest-controller.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/automizely-marketing/includes/api/marketing/v1/class-am-mt-rest-settings-controller.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/automizely-marketing/includes/class-am-rest-controller.php:5
- > PHP Warning
Use of undefined constant AUTOMIZELY_MARKETING_PATH - assumed 'AUTOMIZELY_MARKETING_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/automizely-marketing/includes/api/marketing/v1/class-am-mt-rest-settings-controller.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/automizely-marketing/includes/class-am-rest-controller.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
9 plugin tags: pop up, pop up plugin, pop up maker, email pop ups, sales pop ups...
automizely-marketing/automizely-marketing.php 92% from 13 tests
The main PHP script in "Automizely Popup - Email Pop Up, Sales Pop Up, Exit Intent Pop Up, Upsell Pop Up, Cart Abandonment Pop Up" version 1.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Plugin Name: A shorter plugin name is better (currently 105 characters long instead of max. 70)
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
No dangerous file extensions were detected1,008 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 101 | 199 | 677 |
CSS | 2 | 76 | 131 | 242 |
SVG | 4 | 0 | 0 | 60 |
JSON | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 2.05MB with 1.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544X500.png | 1,464.24KB | 323.07KB | ▼ 77.94% |
assets/icon-128x128.png | 2.61KB | 1.20KB | ▼ 54.00% |
assets/banner-772X250.png | 479.97KB | 109.31KB | ▼ 77.23% |
assets/icon-256x256.png | 4.88KB | 2.24KB | ▼ 54.07% |
assets/images/star.png | 2.15KB | 1.81KB | ▼ 15.52% |