Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.27MB] [CPU: ▼14.43ms] Passed 4 tests
A check of server-side resources used by A/B Testing for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 43.70 ▲0.43 |
Dashboard /wp-admin | 3.71 ▲0.40 | 48.53 ▼1.65 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 45.25 ▼2.90 |
Add New Post /wp-admin/post-new.php | 3.61 ▼2.27 | 40.60 ▼53.61 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 46.12 ▲13.48 |
Add New A/B Test /wp-admin/post-new.php?post_type=abt4wp-test | 3.61 | 35.42 |
All A/B Tests /wp-admin/admin.php?page=ab-testing-for-wp | 3.54 | 31.32 |
How to Use /wp-admin/admin.php?page=ab-testing-for-wp_howto | 3.56 | 34.47 |
Advanced Options /wp-admin/admin.php?page=ab-testing-for-wp_advanced | 3.54 | 32.61 |
Server storage [IO: ▲2.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 114 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_ab_testing_for_wp_ab_test |
wp_ab_testing_for_wp_log |
wp_ab_testing_for_wp_variant_condition |
wp_ab_testing_for_wp_variant |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
ab-testing-for-wp-options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for A/B Testing for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲204 | 14.39 ▲0.16 | 18.92 ▲17.04 | 44.77 ▲0.29 |
Dashboard /wp-admin | 2,273 ▲85 | 5.89 ▲0.08 | 111.49 ▼7.15 | 45.77 ▲0.32 |
Posts /wp-admin/edit.php | 2,156 ▲70 | 2.05 ▲0.07 | 37.14 ▲0.25 | 33.81 ▲0.09 |
Add New Post /wp-admin/post-new.php | 6,457 ▲4,924 | 22.33 ▼1.06 | 939.59 ▲275.74 | 39.53 ▼11.62 |
Media Library /wp-admin/upload.php | 1,455 ▲64 | 4.18 ▼0.03 | 100.19 ▼6.46 | 43.97 ▼3.16 |
Add New A/B Test /wp-admin/post-new.php?post_type=abt4wp-test | 6,494 | 28.02 | 1,090.42 | 53.35 |
All A/B Tests /wp-admin/admin.php?page=ab-testing-for-wp | 834 | 2.44 | 40.16 | 26.72 |
How to Use /wp-admin/admin.php?page=ab-testing-for-wp_howto | 994 | 2.27 | 29.60 | 31.12 |
Advanced Options /wp-admin/admin.php?page=ab-testing-for-wp_advanced | 861 | 2.37 | 27.28 | 23.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure failed, leaving 4 tables in the database
- wp_ab_testing_for_wp_variant
- wp_ab_testing_for_wp_variant_condition
- wp_ab_testing_for_wp_log
- wp_ab_testing_for_wp_ab_test
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- ab-testing-for-wp-options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=abt4wp-test
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. The REST API route definition for ab-testing-for-wp/v1/ab-test is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
- > GET request to /wp-admin/post-new.php?post_type=abt4wp-test
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. The REST API route definition for ab-testing-for-wp/v1/track is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
- > GET request to /wp-admin/post-new.php?post_type=abt4wp-test
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. The REST API route definition for ab-testing-for-wp/v1/outbound is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
SRP 50% 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
The following issues need your attention
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'ABTestingForWP\\Integration' not found in wp-content/plugins/ab-testing-for-wp/src/php/integrations/contact-form-7/ContactForm7.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ab-testing-for-wp/src/php/integrations/Integration.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'ABTestingForWP\\Integration' not found in wp-content/plugins/ab-testing-for-wp/src/php/integrations/formidable/Formidable.php:5
- > PHP Fatal error
Uncaught Error: Class 'ABTestingForWP\\Integration' not found in wp-content/plugins/ab-testing-for-wp/src/php/integrations/gravityforms/GravityForms.php:5
- > PHP Fatal error
Uncaught Error: Class 'ABTestingForWP\\Integration' not found in wp-content/plugins/ab-testing-for-wp/src/php/integrations/ninja-forms/NinjaForms.php:5
- > PHP Fatal error
Uncaught Error: Class 'ABTestingForWP\\Integration' not found in wp-content/plugins/ab-testing-for-wp/src/php/integrations/mc4wp/MC4WP.php:5
- > PHP Fatal error
Uncaught Error: Class 'ABTestingForWP\\Integration' not found in wp-content/plugins/ab-testing-for-wp/src/php/integrations/wpforms/WPForms.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/ab-testing-for-wp/src/php/integrations/Integration.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/ab-testing-for-wp/src/php/integrations/Integration.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'ABTestingForWP\\Integration' not found in wp-content/plugins/ab-testing-for-wp/src/php/integrations/html-forms/HTMLForms.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=abt4wp-test
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
wp.components.IconButton is deprecated since version 5.4 and will be removed in version 6.2. Please use wp.components.Button instead.
- > GET request to /wp-admin/admin.php?page=ab-testing-for-wp
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=abt4wp-test - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: ab testing, optimise, marketing, measure, ab test...
ab-testing-for-wp/ab-testing-for-wp.php Passed 13 tests
The principal PHP file in "A/B Testing for WordPress" v. 1.18.2 is loaded by WordPress automatically on each request
89 characters long description:
Easiest way to create split tests on your WordPress sites, right from the content editor!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected16,459 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 10,819 |
TypeScript | 42 | 477 | 28 | 2,655 |
PHP | 39 | 664 | 262 | 2,337 |
CSS | 13 | 64 | 0 | 351 |
JavaScript | 10 | 4 | 16 | 127 |
YAML | 2 | 6 | 0 | 64 |
Markdown | 1 | 36 | 0 | 56 |
SVG | 3 | 0 | 0 | 31 |
Bourne Shell | 2 | 7 | 1 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 176 | |
▷ Static methods | 15 | 8.52% |
▷ Public methods | 125 | 71.02% |
▷ Protected methods | 18 | 10.23% |
▷ Private methods | 33 | 18.75% |
Functions | 23 | |
▷ Named functions | 3 | 13.04% |
▷ Anonymous functions | 20 | 86.96% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/assets/how-to-2.png | 69.13KB | 34.70KB | ▼ 49.81% |
src/assets/how-to-1.png | 102.86KB | 43.91KB | ▼ 57.31% |
src/assets/how-to-3.png | 43.81KB | 13.01KB | ▼ 70.31% |
src/assets/how-to-4.png | 69.07KB | 20.45KB | ▼ 70.39% |