Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.45ms] Passed 4 tests
A check of server-side resources used by Popunder Popup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.11 ▼1.29 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.02 ▼12.96 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.97 ▼6.36 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.24 ▼17.19 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.74 ▼0.98 |
Popunder popup /wp-admin/options-general.php?page=popunder-popup | 3.30 | 37.50 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_popunderpopup |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
popunderpopup_session |
widget_theysaidso_widget |
can_compress_scripts |
popunderpopup_popup_db |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Popunder Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.44 ▼1.12 | 7.91 ▲6.47 | 43.18 ▲5.35 |
Dashboard /wp-admin | 2,202 ▲28 | 5.63 ▲0.05 | 82.32 ▼4.25 | 38.92 ▼6.12 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.03 | 37.58 ▲3.54 | 31.20 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,528 ▼3 | 23.21 ▲0.17 | 672.57 ▲9.68 | 51.54 ▲1.70 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▲0.00 | 92.85 ▼9.35 | 41.58 ▼4.25 |
Popunder popup /wp-admin/options-general.php?page=popunder-popup | 917 | 2.15 | 37.36 | 28.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_popunderpopup
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- popunderpopup_popup_db
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- popunderpopup_session
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/popunder-popup/popunder-popup.php
- > /wp-content/plugins/popunder-popup/page/popunder-setting.php
- > /wp-content/plugins/popunder-popup/classes/popunder-query.php
- > /wp-content/plugins/popunder-popup/page/popunder-edit.php
- > /wp-content/plugins/popunder-popup/classes/popunder-widget.php
- > /wp-content/plugins/popunder-popup/page/popunder-show.php
- > /wp-content/plugins/popunder-popup/page/popunder-add.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: height in wp-content/plugins/popunder-popup/classes/popunder-widget.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/popunder-popup/classes/popunder-stater.php:9
- > PHP Notice
Undefined variable: width in wp-content/plugins/popunder-popup/classes/popunder-widget.php on line 34
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: popup, popunder, pop-under
popunder-popup/popunder-popup.php 92% from 13 tests
The main file in "Popunder Popup" v. 3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 273 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,268 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 106 | 58 | 998 |
PO File | 2 | 89 | 112 | 208 |
JavaScript | 1 | 5 | 1 | 48 |
SQL | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
PNG images were not found in this plugin