Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/ab-press-optimizer-lite/includes/functions.php+667
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.03MB] [CPU: ▼287.86ms] Passed 4 tests
An overview of server-side resources used by AB Press Optimizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 55.96 ▲5.19 |
Dashboard /wp-admin | 3.47 ▲0.06 | 36.73 ▲3.78 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 48.37 ▲10.26 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 93.68 ▼1,162.83 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 25.16 ▲2.43 |
Detail /wp-admin/admin.php?page=abpo-details | 3.22 | 20.38 |
Experiments /wp-admin/admin.php?page=abpo-experiment | 3.30 | 25.40 |
Delete /wp-admin/admin.php?page=abpo-delete | 3.30 | 23.99 |
Getting Started /wp-admin/admin.php?page=abpo-gettingStarted | 3.40 | 24.96 |
New /wp-admin/admin.php?page=abpo-new | 3.37 | 25.15 |
Edit /wp-admin/admin.php?page=abpo-edit | 3.22 | 22.01 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 54 new files
Database: 2 new tables, 2 new options
New tables |
---|
wp_ab_press_optimizer_lite_experiment |
wp_ab_press_optimizer_lite_variations |
New WordPress options |
---|
ab_press_hide_pointer |
ab_press_optimizer_version |
Browser metrics Passed 4 tests
Checking browser requirements for AB Press Optimizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,056 ▲302 | 17.05 ▲1.27 | 10.51 ▲4.36 | 2.87 ▼0.02 |
Dashboard /wp-admin | 2,974 ▲113 | 6.93 ▲0.71 | 116.51 ▼15.12 | 164.84 ▼0.31 |
Posts /wp-admin/edit.php | 2,774 ▲83 | 3.38 ▲0.14 | 70.52 ▲6.12 | 155.94 ▲13.13 |
Add New Post /wp-admin/post-new.php | 1,723 ▲62 | 16.47 ▲0.03 | 390.15 ▼20.91 | 190.45 ▲36.41 |
Media Library /wp-admin/upload.php | 1,787 ▲92 | 6.05 ▲0.53 | 129.45 ▼12.35 | 200.61 ▲5.48 |
Detail /wp-admin/admin.php?page=abpo-details | 1,227 | 2.96 | 56.02 | 117.52 |
Experiments /wp-admin/admin.php?page=abpo-experiment | 1,226 | 3.13 | 58.49 | 117.51 |
Delete /wp-admin/admin.php?page=abpo-delete | 1,059 | 2.93 | 55.69 | 98.54 |
Getting Started /wp-admin/admin.php?page=abpo-gettingStarted | 1,913 | 3.00 | 60.05 | 118.40 |
New /wp-admin/admin.php?page=abpo-new | 1,396 | 3.02 | 59.46 | 116.99 |
Edit /wp-admin/admin.php?page=abpo-edit | 1,232 | 3.07 | 56.23 | 120.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=abpo-edit
- > Notice in wp-content/plugins/ab-press-optimizer-lite/class-ab-press-optimizer.php+460
Undefined index: eid
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=abpo-edit
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=abpo-edit
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=abpo-delete
- > Warning in wp-content/plugins/ab-press-optimizer-lite/class-ab-press-optimizer.php+479
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2036)
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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ab-press-optimizer-lite/views/shortcode_popup.php
- 6× 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/ab-press-optimizer-lite/includes/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ab-press-optimizer-lite/views/experiment.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function ab_press_getExperiment() in wp-content/plugins/ab-press-optimizer-lite/views/details.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ab-press-optimizer-lite/views/gettingStarted.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ab-press-optimizer-lite/views/new.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function ab_press_getExperiment() in wp-content/plugins/ab-press-optimizer-lite/views/edit.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=abpo-gettingStarted
- > Network (severe)
wp-content/plugins/ab-press-optimizer-lite/assets/editorbutton.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (**New Experiment** - Quickly setup your experiment by filling in a few simple text inputs. We have taken out all the guest work and made the interface straight forward. With A/B Testing integrated into WordPress you have complete access and control of your data.), #2 (**Embedding Experiment** - No need to remember how to embed an experiment simply use our intuitive Shortcode interface to select and embed and experiment), #3 (**Advanced Embedding** - If you need more flexibility simply use our embedding PHP function to integrate and experiment directly into your theme.), #4 (**Real time metrics** - Instantly watch and compare your variation to choose your best option. Efficiently monitor visitors, conversions and conversion rates. Get your strongest variations with only a sample size of 30 visitors per variation.)
ab-press-optimizer-lite/ab-press-optimizer.php 77% from 13 tests
The principal PHP file in "AB Press Optimizer" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ab-press-optimizer-lite.php" instead of "ab-press-optimizer.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected3,775 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 429 | 424 | 1,928 |
CSS | 2 | 68 | 50 | 1,291 |
JavaScript | 6 | 89 | 176 | 556 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 4 | 12.90% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.16MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/ab-logo.png | 2.92KB | 1.34KB | ▼ 54.05% |
assets/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
assets/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/banner-772x250.png | 36.20KB | 14.52KB | ▼ 59.90% |
assets/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |