Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.47ms] Passed 4 tests
Server-side resources used by Onex Custom Popup Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.80 ▼2.45 |
Dashboard /wp-admin | 3.33 ▼0.02 | 46.07 ▼19.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.87 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.95 ▼14.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.98 ▼1.87 |
Server storage [IO: ▲7.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 88 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Onex Custom Popup Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.25 ▼1.06 | 1.92 ▲0.28 | 37.77 ▼5.65 |
Dashboard /wp-admin | 2,222 ▲30 | 4.86 ▼0.09 | 96.71 ▼20.77 | 40.39 ▼5.01 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.02 ▼0.04 | 39.51 ▲1.41 | 37.12 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 18.19 ▼0.08 | 601.24 ▼66.35 | 47.69 ▼3.12 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.24 ▲0.02 | 98.12 ▼11.55 | 41.28 ▼7.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/onex-custom-popup-builder/templates/vue-templates/preset-page.php
- > /wp-content/plugins/onex-custom-popup-builder/templates/vue-templates/preset-list.php
- > /wp-content/plugins/onex-custom-popup-builder/templates/vue-templates/settings-page.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: overlay_html in wp-content/plugins/onex-custom-popup-builder/templates/popup-container.php on line 18
- > PHP Notice
Undefined variable: popup_json_data in wp-content/plugins/onex-custom-popup-builder/templates/popup-container.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/onex-custom-popup-builder/templates/vue-templates/preset-item.php:6
- > PHP Notice
Undefined variable: popup_settings_main in wp-content/plugins/onex-custom-popup-builder/templates/popup-container.php on line 23
- > PHP Notice
Undefined variable: popup_id in wp-content/plugins/onex-custom-popup-builder/templates/popup-container.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/onex-custom-popup-builder/templates/vue-templates/editor/condition-manager.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/onex-custom-popup-builder/templates/vue-templates/mailchimp-list-item.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/onex-custom-popup-builder/templates/vue-templates/preset-filters.php:3
- > PHP Notice
Undefined variable: popup_settings_main in wp-content/plugins/onex-custom-popup-builder/templates/popup-container.php on line 10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/onex-custom-popup-builder/templates/popup-container.php:24
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: animation effect, popup, custom popup builder, elementor addons, custom popup...
onex-custom-popup-builder/custom-popup-builder.php 92% from 13 tests
The main PHP script in "Onex Custom Popup Builder" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("onex-custom-popup-builder.php" instead of "custom-popup-builder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin41,758 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 8,181 | 4,041 | 34,591 |
PHP | 48 | 1,635 | 27 | 6,286 |
SVG | 1 | 0 | 0 | 870 |
JSON | 6 | 0 | 0 | 6 |
CSS | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 2 | 5.71% |
▷ Concrete classes | 33 | 94.29% |
▷ Final classes | 0 | 0.00% |
Methods | 281 | |
▷ Static methods | 24 | 8.54% |
▷ Public methods | 271 | 96.44% |
▷ Protected methods | 10 | 3.56% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/dummy-popups/popup-5/thumbnail.png | 1.78KB | 1.39KB | ▼ 21.72% |
templates/dummy-popups/popup-4/thumbnail.png | 1.73KB | 1.38KB | ▼ 20.00% |
templates/dummy-popups/popup-2/thumbnail.png | 1.84KB | 1.44KB | ▼ 21.73% |
templates/dummy-popups/popup-1/thumbnail.png | 1.69KB | 1.38KB | ▼ 18.07% |
templates/dummy-popups/popup-6/thumbnail.png | 1.78KB | 1.39KB | ▼ 21.80% |