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 gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼144.42ms] Passed 4 tests
A check of server-side resources used by Optimizely X
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.11 ▲0.39 | 35.51 ▲9.01 |
Dashboard /wp-admin | 3.43 ▲0.38 | 49.36 ▲4.63 |
Posts /wp-admin/edit.php | 3.48 ▲0.37 | 36.92 ▼17.80 |
Add New Post /wp-admin/post-new.php | 5.73 ▲0.30 | 88.38 ▼560.53 |
Media Library /wp-admin/upload.php | 3.31 ▲0.31 | 34.93 ▼3.97 |
Optimizely /wp-admin/admin.php?page=optimizely-config | 3.29 | 36.15 |
Results /wp-admin/admin.php?page=optimizely-results | 3.32 | 30.69 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 3 new options
New WordPress options |
---|
optimizely_post_types |
optimizely_x_post_types |
optimizely_x_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Optimizely X
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,757 ▲120 | 15.75 ▼0.15 | 11.56 ▲0.91 | 50.58 ▼0.17 |
Dashboard /wp-admin | 3,018 ▲87 | 6.08 ▲0.12 | 143.87 ▼1.69 | 130.67 ▲19.96 |
Posts /wp-admin/edit.php | 2,811 ▲72 | 2.71 ▼0.00 | 62.94 ▼5.68 | 86.37 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,573 ▼110 | 18.43 ▲0.07 | 393.93 ▲3.82 | 118.50 ▲8.31 |
Media Library /wp-admin/upload.php | 1,806 ▼4 | 5.00 ▼0.01 | 153.20 ▼11.16 | 135.27 ▲14.93 |
Optimizely /wp-admin/admin.php?page=optimizely-config | 1,534 | 2.42 | 74.73 | 86.05 |
Results /wp-admin/admin.php?page=optimizely-results | 1,107 | 2.13 | 68.93 | 74.44 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 3 options in the database
- optimizely_x_version
- optimizely_post_types
- optimizely_x_post_types
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 29× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optimizely-x/admin/partials/fields/optimizely-x-conditional-activation-code.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/optimizely-x/admin/partials/notices/no-token.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optimizely-x/admin/partials/fields/optimizely-x-num-variations.php:10
- > PHP Fatal error
Trait 'Optimizely_X\\Singleton' not found in wp-content/plugins/optimizely-x/includes/class-admin.php on line 16
- > PHP Fatal error
Trait 'Optimizely_X\\Singleton' not found in wp-content/plugins/optimizely-x/includes/class-i18n.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'Optimizely_X\\AJAX' not found in wp-content/plugins/optimizely-x/includes/class-ajax-metabox.php:17
- > PHP Fatal error
Uncaught Error: Class 'Optimizely_X\\AJAX' not found in wp-content/plugins/optimizely-x/includes/class-ajax-config.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/optimizely-x/admin/partials/metabox/unpublished.php:11
- > PHP Fatal error
Trait 'Optimizely_X\\Singleton' not found in wp-content/plugins/optimizely-x/includes/class-core.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/optimizely-x/admin/partials/config.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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
optimizely-x/optimizely-x.php 92% from 13 tests
The main PHP file in "Optimizely X" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 711 characters long)
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
Success! There were no dangerous files found in this plugin2,411 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 440 | 1,220 | 1,963 |
JavaScript | 4 | 84 | 136 | 366 |
CSS | 1 | 27 | 25 | 82 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 5 | 6.49% |
▷ Public methods | 49 | 63.64% |
▷ Protected methods | 11 | 14.29% |
▷ Private methods | 17 | 22.08% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 2 | 28.57% |
▷ Class constants | 5 | 71.43% |
▷ Public constants | 5 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/optimizely-icon.png | 1.47KB | 0.89KB | ▼ 39.46% |