Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.70MB] [CPU: ▲10.61ms] Passed 4 tests
Server-side resources used by Nelio AB Testing
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.54 | 48.83 ▲4.20 |
Dashboard /wp-admin | 5.06 ▲1.75 | 65.85 ▲16.54 |
Posts /wp-admin/edit.php | 5.11 ▲1.75 | 63.70 ▲14.16 |
Add New Post /wp-admin/post-new.php | 7.71 ▲1.82 | 98.09 ▲7.55 |
Media Library /wp-admin/upload.php | 4.99 ▲1.75 | 53.60 ▲20.26 |
/wp-admin/admin.php?page=nelio-ab-testing-css-editor | 4.68 | 38.03 |
/wp-admin/admin.php?page=nelio-ab-testing-javascript-editor | 4.68 | 34.82 |
Server storage [IO: ▲9.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 535 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
nab_version |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Nelio AB Testing: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲49 | 14.35 ▼0.05 | 1.72 ▼0.14 | 41.05 ▼3.46 |
Dashboard /wp-admin | 2,230 ▲50 | 5.68 ▼0.00 | 99.02 ▼2.10 | 43.35 ▼10.35 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 1.99 ▲0.04 | 38.72 ▼3.01 | 36.24 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.05 ▼0.22 | 686.26 ▲19.11 | 66.65 ▲8.39 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.22 ▼0.02 | 98.48 ▲1.63 | 41.76 ▼1.45 |
/wp-admin/admin.php?page=nelio-ab-testing-css-editor | 28 | 0.41 | 0.07 | 3.83 |
/wp-admin/admin.php?page=nelio-ab-testing-javascript-editor | 28 | 0.41 | 0.07 | 3.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- nab_version
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/nelio-ab-testing/includes/utils/notifications/almost-no-more-quota-in-site.php
- > /wp-content/plugins/nelio-ab-testing/includes/lib/settings/partials/nelio-ab-testing-radio-setting.php
- > /wp-content/plugins/nelio-ab-testing/includes/utils/notifications/no-more-quota-in-site.php
- > /wp-content/plugins/nelio-ab-testing/includes/utils/notifications/experiment-stop.php
- > /wp-content/plugins/nelio-ab-testing/includes/lib/settings/partials/nelio-ab-testing-tabs.php
- > /wp-content/plugins/nelio-ab-testing/includes/utils/notifications/no-more-quota.php
- > /wp-content/plugins/nelio-ab-testing/includes/utils/notifications/almost-no-more-quota.php
- > /wp-content/plugins/nelio-ab-testing/includes/utils/notifications/experiment-start.php
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/nelio-ab-testing/includes/utils/notifications/almost-no-more-quota.php:284
- > PHP Fatal error
Uncaught Error: Call to undefined function Nelio_AB_Testing\\WooCommerce\\Compat\\add_action() in wp-content/plugins/nelio-ab-testing/includes/hooks/woocommerce/compat/custom-hooks.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/nelio-ab-testing/includes/utils/notifications/experiment-start.php:284
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nelio-ab-testing/includes/lib/settings/partials/nelio-ab-testing-range-setting.php:31
- > PHP Notice
Undefined variable: options in wp-content/plugins/nelio-ab-testing/includes/lib/settings/partials/nelio-ab-testing-radio-setting.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function Nelio_AB_Testing\\WooCommerce\\Experiment_Library\\Product_Experiment\\add_filter() in wp-content/plugins/nelio-ab-testing/includes/hooks/woocommerce/experiments/product/edit.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nelio-ab-testing/includes/lib/settings/partials/nelio-ab-testing-select-setting.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/nelio-ab-testing/includes/utils/notifications/no-more-quota.php:284
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/nelio-ab-testing/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:20
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/nelio-ab-testing/includes/lib/settings/partials/nelio-ab-testing-radio-setting.php on line 25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=nelio-ab-testing-css-editor
- > Network (severe)
wp-admin/admin.php?page=nelio-ab-testing-css-editor - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=nelio-ab-testing-javascript-editor
- > Network (severe)
wp-admin/admin.php?page=nelio-ab-testing-javascript-editor - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
nelio-ab-testing/nelio-ab-testing.php Passed 13 tests
The primary PHP file in "Nelio AB Testing" version 6.2.1 is used by WordPress to initiate all plugin functionality
139 characters long description:
Optimize your site based on data, not opinions. With this plugin, you will be able to perform AB testing (and more) on your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected25,507 lines of code in 444 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 326 | 5,923 | 7,197 | 21,285 |
TypeScript | 40 | 345 | 379 | 2,489 |
Sass | 11 | 117 | 0 | 652 |
Markdown | 1 | 65 | 0 | 350 |
JavaScript | 38 | 23 | 49 | 347 |
JSON | 3 | 0 | 0 | 208 |
CSS | 22 | 1 | 0 | 140 |
SVG | 2 | 0 | 0 | 28 |
XML | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 73 | |
▷ Abstract classes | 7 | 9.59% |
▷ Concrete classes | 66 | 90.41% |
▷ Final classes | 1 | 1.52% |
Methods | 712 | |
▷ Static methods | 52 | 7.30% |
▷ Public methods | 467 | 65.59% |
▷ Protected methods | 61 | 8.57% |
▷ Private methods | 184 | 25.84% |
Functions | 646 | |
▷ Named functions | 363 | 56.19% |
▷ Anonymous functions | 283 | 43.81% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/lib/settings/assets/images/help.png | 0.30KB | 0.32KB | 0.00% |