Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼34.57ms] Passed 4 tests
Server-side resources used by Experience Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 52.10 ▲8.19 |
Dashboard /wp-admin | 3.35 ▲0.00 | 26.83 ▼36.24 |
Posts /wp-admin/edit.php | 3.35 ▼0.01 | 29.09 ▼20.66 |
Add New Post /wp-admin/post-new.php | 3.35 ▼2.54 | 27.42 ▼72.48 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 28.98 ▼8.88 |
Reset password /wp-admin/admin.php?page=ml_resetpassword | 3.35 | 28.57 |
Sign in /wp-admin/admin.php?page=ml_signin | 3.35 | 26.50 |
Change account /wp-admin/admin.php?page=ml_confirm_change_account | 3.35 | 28.20 |
Pages /wp-admin/admin.php?page=ml_pages | 3.35 | 28.52 |
Audiences /wp-admin/admin.php?page=ml_audience | 3.35 | 25.16 |
Please confirm /wp-admin/admin.php?page=ml_please_confirm | 3.35 | 27.11 |
Reset password success /wp-admin/admin.php?page=ml_resetpassword_complete | 3.35 | 26.87 |
Log out /wp-admin/admin.php?page=ml_logout | 3.35 | 28.68 |
Placement Window /wp-admin/admin.php?page=ml_placementwindow | 3.35 | 27.89 |
Trackers /wp-admin/admin.php?page=ml_trackers | 3.35 | 25.22 |
Server storage [IO: ▲1.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
ml_token |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Experience Builder: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲62 | 14.67 ▲0.25 | 1.83 ▼0.23 | 40.89 ▼1.79 |
Dashboard /wp-admin | 2,227 ▲56 | 5.54 ▲0.01 | 82.61 ▼12.69 | 72.85 ▲28.38 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.00 ▲0.02 | 36.84 ▼0.46 | 39.10 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,566 ▲30 | 22.93 ▲0.07 | 683.38 ▲59.55 | 56.47 ▼1.60 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.18 ▲0.00 | 100.36 ▼3.54 | 78.33 ▲30.94 |
Reset password /wp-admin/admin.php?page=ml_resetpassword | 909 | 2.00 | 24.60 | 27.19 |
Sign in /wp-admin/admin.php?page=ml_signin | 1,548 | 2.31 | 25.78 | 36.32 |
Change account /wp-admin/admin.php?page=ml_confirm_change_account | 2,225 | 3.25 | 31.52 | 35.10 |
Pages /wp-admin/admin.php?page=ml_pages | 2,210 | 3.44 | 32.64 | 33.59 |
Audiences /wp-admin/admin.php?page=ml_audience | 2,226 | 3.25 | 31.35 | 36.29 |
Please confirm /wp-admin/admin.php?page=ml_please_confirm | 872 | 1.99 | 24.70 | 24.89 |
Reset password success /wp-admin/admin.php?page=ml_resetpassword_complete | 861 | 1.99 | 25.18 | 23.66 |
Log out /wp-admin/admin.php?page=ml_logout | 2,211 | 3.25 | 29.60 | 38.33 |
Placement Window /wp-admin/admin.php?page=ml_placementwindow | 2,225 | 3.31 | 30.77 | 38.12 |
Trackers /wp-admin/admin.php?page=ml_trackers | 2,231 | 3.25 | 32.09 | 38.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/experience-builder/includes/class-monoloop-settings.php+350
Undefined variable: wp_version
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 23 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ml_trackers
- > Notice in wp-content/plugins/experience-builder/includes/class-monoloop-settings.php+350
Undefined variable: wp_version
- 23 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ml_trackers
- > Notice in wp-content/plugins/experience-builder/includes/class-monoloop-settings.php+223
Undefined index: title
- 23 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ml_trackers
- > Notice in wp-content/plugins/experience-builder/includes/class-monoloop-settings.php+238
Undefined index: label
- > GET request to /wp-admin/admin.php?page=ml_resetpassword
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Auth::resetpassword() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_resetpassword
- > Notice in wp-content/plugins/experience-builder/includes/controllers/class-monoloop-controller-auth.php+406
Undefined variable: error
- > GET request to /wp-admin/admin.php?page=ml_resetpassword
- > Notice in wp-content/plugins/experience-builder/includes/controllers/class-monoloop-controller-auth.php+416
Undefined variable: username
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ml_trackers
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Auth::login() should not be called statically
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ml_trackers
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Auth::start() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_confirm_change_account
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Auth::changeAccount() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_pages
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Page::index() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_audience
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Segment::index() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_please_confirm
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Auth::pleaseConfirm() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_please_confirm
- > Notice in wp-content/plugins/experience-builder/includes/controllers/class-monoloop-controller-auth.php+594
Undefined index: ml_firstname
- > GET request to /wp-admin/admin.php?page=ml_please_confirm
- > Notice in wp-content/plugins/experience-builder/includes/controllers/class-monoloop-controller-auth.php+594
Undefined index: ml_lastname
- > GET request to /wp-admin/admin.php?page=ml_resetpassword_complete
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Auth::resetpassword_successs() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_resetpassword_complete
- > Notice in wp-content/plugins/experience-builder/includes/controllers/class-monoloop-controller-auth.php+458
Undefined index: ml_email
- > GET request to /wp-admin/admin.php?page=ml_logout
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Auth::logout() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_placementwindow
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Placement::view_placementwindow() should not be called statically
- > GET request to /wp-admin/admin.php?page=ml_trackers
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Monoloop_Controller_Tracker::index() should not be called statically
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/experience-builder/views/link-to-signup.php
- > /wp-content/plugins/experience-builder/views/page-edit-content.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: placementUrl in wp-content/plugins/experience-builder/views/page-edit-content.php on line 82
- > PHP Notice
Trying to get property 'placementWindowUrl' of non-object in wp-content/plugins/experience-builder/views/page-edit-content.php on line 54
- > PHP Notice
Undefined variable: url in wp-content/plugins/experience-builder/views/page-edit-content.php on line 45
- > PHP Notice
Undefined variable: api in wp-content/plugins/experience-builder/views/page-edit-content.php on line 54
- > PHP Notice
Undefined variable: api in wp-content/plugins/experience-builder/views/page-edit-content.php on line 66
- > PHP Notice
Trying to get property 'placementWindowUrl' of non-object in wp-content/plugins/experience-builder/views/page-edit-content.php on line 66
- > PHP Notice
Undefined variable: type in wp-content/plugins/experience-builder/views/page-edit-content.php on line 49
- > PHP Notice
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #12 (screenshot-12.png: Real time reporting of active Experiences.), #13 (screenshot-13.png: Real time reporting of active Goals.)
experience-builder/monoloop.php 77% from 13 tests
The main PHP script in "Experience Builder" version 1.4 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("experience-builder.php" instead of "monoloop.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.6" instead of "3.0")
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,073 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 429 | 284 | 1,759 |
CSS | 1 | 56 | 3 | 289 |
JavaScript | 1 | 7 | 4 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.18 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.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 | 57 | |
▷ Static methods | 3 | 5.26% |
▷ Public methods | 55 | 96.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.51% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 1.74MB with 1.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-8.png | 92.64KB | 37.97KB | ▼ 59.01% |
assets/screenshot-2.png | 104.95KB | 43.79KB | ▼ 58.28% |
assets/screenshot-11.png | 116.48KB | 40.27KB | ▼ 65.43% |
assets/screenshot-1.png | 111.98KB | 50.71KB | ▼ 54.72% |
assets/screenshot-3.png | 127.06KB | 53.31KB | ▼ 58.05% |