Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.10ms] Passed 4 tests
Analyzing server-side resources used by My WP A/B Testing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.18 ▼3.55 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.46 ▼2.63 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.18 ▼10.53 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.67 ▼19.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 46.08 ▲9.83 |
Add New /wp-admin/post-new.php?post_type=abtesting | 3.30 | 45.93 |
All campaigns /wp-admin/edit.php?post_type=abtesting | 3.30 | 38.28 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
My WP A/B Testing: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 13.30 ▼1.37 | 2.00 ▲0.22 | 44.48 ▲1.36 |
Dashboard /wp-admin | 2,248 ▲42 | 6.01 ▲0.11 | 98.72 ▼20.69 | 37.72 ▼10.67 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.06 ▲0.04 | 33.36 ▼3.87 | 35.08 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,717 ▲183 | 23.01 ▼0.13 | 667.60 ▲75.68 | 36.30 ▼25.37 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.24 ▲0.01 | 99.10 ▼7.57 | 42.23 ▼6.90 |
Add New /wp-admin/post-new.php?post_type=abtesting | 1,465 | 3.27 | 56.41 | 59.53 |
All campaigns /wp-admin/edit.php?post_type=abtesting | 1,082 | 1.93 | 31.32 | 28.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/my-wp-ab-testing/my-wp-abtesting.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-wp-ab-testing/gut.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
There were no plugin tags found
my-wp-ab-testing/my-wp-abtesting.php 92% from 13 tests
The primary PHP file in "My WP A/B Testing" version 0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("my-wp-ab-testing.php" instead of "my-wp-abtesting.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin12,630 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,405 | 2,294 | 11,583 |
PHP | 3 | 75 | 53 | 733 |
JSX | 2 | 26 | 0 | 236 |
CSS | 1 | 10 | 0 | 47 |
JSON | 1 | 0 | 0 | 31 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin