Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.76ms] 75% from 4 tests
An overview of server-side resources used by Unbounce Landing Pages
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 701.11ms on /wp-admin/admin.php?page=unbounce-pages-diagnostics)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.09 ▼0.38 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.04 ▼7.40 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.12 ▼3.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.22 ▼14.46 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.97 ▼1.47 |
Settings /wp-admin/admin.php?page=unbounce-pages-settings | 3.29 | 34.76 |
Diagnostics /wp-admin/admin.php?page=unbounce-pages-diagnostics | 3.21 | 701.11 |
Pages /wp-admin/admin.php?page=unbounce-pages | 3.31 | 34.83 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 19 new options
New WordPress options |
---|
ub-api-client-id |
ub-api-url |
ub-page-server-domain |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
ub-proxy-error-message |
ub-has-authorized |
ub-domain-id |
ub-user-id |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Unbounce Landing Pages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲157 | 13.72 ▼0.52 | 1.94 ▲0.27 | 44.82 ▲1.83 |
Dashboard /wp-admin | 2,299 ▲96 | 5.34 ▼0.57 | 116.12 ▲14.26 | 40.39 ▼2.63 |
Posts /wp-admin/edit.php | 2,185 ▲85 | 2.43 ▲0.46 | 39.42 ▲3.40 | 34.96 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,563 ▲9 | 23.46 ▲5.10 | 668.32 ▲55.60 | 37.63 ▼21.42 |
Media Library /wp-admin/upload.php | 1,478 ▲78 | 4.58 ▲0.28 | 113.33 ▲10.37 | 47.37 ▲1.01 |
Settings /wp-admin/admin.php?page=unbounce-pages-settings | 924 | 1.95 | 28.17 | 29.15 |
Diagnostics /wp-admin/admin.php?page=unbounce-pages-diagnostics | 1,066 | 1.94 | 24.23 | 32.36 |
Pages /wp-admin/admin.php?page=unbounce-pages | 903 | 1.97 | 27.57 | 26.72 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=unbounce-pages-diagnostics
- > Notice in wp-content/plugins/unbounce/UBDiagnostics.php+128
Only variables should be passed by reference
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UBTemplate' not found in wp-content/plugins/unbounce/templates/main_unauthorized.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/unbounce/templates/title.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/unbounce/templates/authorize_button.php:1
- > PHP Fatal error
Uncaught Error: Class 'UBConfig' not found in wp-content/plugins/unbounce/templates/main.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/unbounce/templates/main_authorized_footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_submit_button() in wp-content/plugins/unbounce/templates/main_authorized.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_submit_Button() in wp-content/plugins/unbounce/templates/main_failed_authorization.php:10
- > PHP Fatal error
Uncaught Error: Class 'UBTemplate' not found in wp-content/plugins/unbounce/templates/diagnostics.php:53
- > PHP Fatal error
Uncaught Error: Class 'UBWPListTable' not found in wp-content/plugins/unbounce/UBPageTable.php:3
- > PHP Notice
Undefined variable: permalink_url in wp-content/plugins/unbounce/templates/diagnostics.php on line 31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
unbounce/Unbounce-Page.php 92% from 13 tests
"Unbounce Landing Pages" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unbounce.php" instead of "Unbounce-Page.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,883 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 474 | 622 | 2,653 |
JavaScript | 5 | 23 | 11 | 153 |
CSS | 1 | 17 | 0 | 77 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 24.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 105 | 69.08% |
▷ Public methods | 108 | 71.05% |
▷ Protected methods | 21 | 13.82% |
▷ Private methods | 23 | 15.13% |
Functions | 30 | |
▷ Named functions | 2 | 6.67% |
▷ Anonymous functions | 28 | 93.33% |
Constants | 29 | |
▷ Global constants | 5 | 17.24% |
▷ Class constants | 24 | 82.76% |
▷ Public constants | 24 | 100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/unbounce-logo-white.png | 21.69KB | 4.45KB | ▼ 79.48% |
img/unbounce-logo-blue.png | 4.31KB | 2.17KB | ▼ 49.52% |