Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/ab-tests-site-section/abtss.php+57
Undefined variable: _SESSION
Server metrics [RAM: ▼2.49MB] [CPU: ▼343.04ms] Passed 4 tests
A check of server-side resources used by A/B Tests Site Section
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.88 ▼1.64 | 4.02 ▼47.50 |
Dashboard /wp-admin | 1.89 ▼1.51 | 4.30 ▼29.60 |
Posts /wp-admin/edit.php | 1.89 ▼1.74 | 4.27 ▼31.65 |
Add New Post /wp-admin/post-new.php | 1.89 ▼5.08 | 4.99 ▼1,263.41 |
Media Library /wp-admin/upload.php | 1.89 ▼1.40 | 3.81 ▼19.76 |
A/B Site Section /wp-admin/options-general.php?page=abtss | 1.90 | 4.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
redirect_requests |
Browser metrics Passed 4 tests
Checking browser requirements for A/B Tests Site Section
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲66 | 15.98 ▲0.31 | 5.99 ▲0.02 | 2.38 ▲0.01 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▼0.05 | 118.46 ▼18.43 | 153.34 ▼9.99 |
Posts /wp-admin/edit.php | 2,693 ▲8 | 3.23 ▼0.01 | 68.82 ▲1.87 | 142.04 ▼6.39 |
Add New Post /wp-admin/post-new.php | 1,714 ▲19 | 21.36 ▼0.20 | 450.19 ▲18.05 | 158.94 ▼5.15 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.54 ▼0.01 | 143.50 ▼3.14 | 185.11 ▼4.66 |
A/B Site Section /wp-admin/options-general.php?page=abtss | 1,038 | 2.36 | 57.02 | 95.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/ab-tests-site-section/abtss.php+57
Undefined variable: _SESSION
- This plugin does not fully uninstall, leaving 1 option in the database
- redirect_requests
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=abtss
- > Notice in wp-content/plugins/ab-tests-site-section/abtss.php+57
Undefined variable: _SESSION
- > GET request to /wp-admin/options-general.php?page=abtss
- > Notice in wp-content/plugins/ab-tests-site-section/abtss.php+57
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=abtss
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=abtss
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× 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-tests-site-section/abtss_admin_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-tests-site-section/abtss_admin_page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: site, ab, section, testing, ab testing
ab-tests-site-section/abtss.php 92% from 13 tests
This is the main PHP file of "A/B Tests Site Section" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ab-tests-site-section.php" instead of "abtss.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected106 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 71 | 11 | 106 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected