Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.37ms] Passed 4 tests
This is a short check of server-side resources used by AB Testing with Javascript
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 36.88 ▼4.62 |
Dashboard /wp-admin | 3.42 ▲0.07 | 46.36 ▼16.24 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.21 ▲5.68 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.43 ▼3.68 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 34.60 ▼0.94 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AB Testing with Javascript
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲41 | 13.27 ▼1.29 | 1.71 ▼0.17 | 43.41 ▼1.25 |
Dashboard /wp-admin | 2,221 ▲33 | 4.88 ▼1.01 | 108.64 ▼3.45 | 38.90 ▼4.59 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.06 ▲0.01 | 39.08 ▲2.36 | 35.08 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 17.72 ▲0.26 | 677.35 ▼22.89 | 63.95 ▲0.64 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.20 ▼0.05 | 95.55 ▼6.23 | 40.38 ▼4.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ab-testing-with-javascript/split-testing-page.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-testing-with-javascript/functions/split-testing-menu.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-testing-with-javascript/functions/create-app-js-file.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/ab-testing-with-javascript/split-testing-page.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-testing-with-javascript/functions/split-testing-menu.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-testing-with-javascript/functions/ajax-requests.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-testing-with-javascript/functions/load-resources.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
4 plugin tags: content experiments, ab tests, ab testing, ab experiments
ab-testing-with-javascript/split-testing.php 92% from 13 tests
The entry point to "AB Testing with Javascript" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ab-testing-with-javascript.php" instead of "split-testing.php")
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
Everything looks great! No dangerous files found in this plugin1,641 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 153 | 235 | 773 |
PHP | 6 | 254 | 227 | 641 |
CSS | 2 | 24 | 0 | 108 |
Markdown | 1 | 46 | 0 | 108 |
HTML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 44.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 55.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin