Benchmarks
Plugin footprint 65% 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: ▲0.02MB] [CPU: ▼10.84ms] Passed 4 tests
Analyzing server-side resources used by Push Down Banners
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.23 ▼9.99 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.99 ▼15.42 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 53.53 ▼0.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.43 ▼17.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.58 ▼0.42 |
/wp-admin/admin.php?page=push_preview_banner | 3.20 | 32.41 |
Push Down Banners /wp-admin/admin.php?page=push_pushdown_top | 3.23 | 39.90 |
Daily Stats /wp-admin/admin.php?page=push_daily_stat | 3.20 | 36.46 |
Add New Pushdown Banner /wp-admin/admin.php?page=new_pushdown_banner | 3.25 | 32.56 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 44 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_daily_stats |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Push Down Banners
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲122 | 13.73 ▼0.64 | 10.30 ▲8.33 | 39.76 ▼6.21 |
Dashboard /wp-admin | 2,232 ▲41 | 4.93 ▲0.05 | 111.36 ▲2.93 | 68.90 ▲22.07 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.01 ▼0.02 | 37.43 ▼0.66 | 38.31 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,551 ▲31 | 23.17 ▼0.04 | 766.22 ▲93.08 | 38.32 ▼29.80 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.18 ▼0.02 | 98.73 ▼6.96 | 76.17 ▲29.53 |
/wp-admin/admin.php?page=push_preview_banner | 822 | 1.88 | 26.32 | 21.20 |
Push Down Banners /wp-admin/admin.php?page=push_pushdown_top | 858 | 2.06 | 25.64 | 30.35 |
Daily Stats /wp-admin/admin.php?page=push_daily_stat | 861 | 2.06 | 25.11 | 29.30 |
Add New Pushdown Banner /wp-admin/admin.php?page=new_pushdown_banner | 1,381 | 3.13 | 52.69 | 82.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_daily_stats
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+425
Undefined index: imageoption
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+426
Undefined index: bannertype
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+427
Undefined index: bgcolor
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+428
Undefined index: backname
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+429
Undefined index: mainnewwindow
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+430
Undefined index: bannername
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+431
Undefined index: mainname
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+432
Undefined index: firstonpage
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+433
Undefined index: showonpage
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+434
Undefined index: responsive
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+435
Undefined index: abovecss
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+436
Undefined index: belowcss
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+440
Undefined index: mainurl
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+441
Undefined index: autoopen
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+442
Undefined index: autoclose
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+443
Undefined index: autoopentime
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+444
Undefined index: autoclosetime
- > GET request to /wp-admin/admin.php?page=push_preview_banner
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+445
Undefined index: onceperday
- > GET request to /wp-admin/admin.php?page=push_daily_stat
- > Notice in wp-content/plugins/push-down-banners/pushdownoptions.php+528
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=new_pushdown_banner
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=new_pushdown_banner
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=push_daily_stat
- > Network (severe)
wp-content/plugins/push-down-banners/images/wp_push_buy_em.png - Failed to load resource: the server responded with a status of 404 (Not Found)
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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
push-down-banners/pushdownbanner.php 92% from 13 tests
The main PHP script in "Push Down Banners" version 1.3 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 ("push-down-banners.php" instead of "pushdownbanner.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,633 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 313 | 25 | 3,679 |
PO File | 9 | 2,311 | 4,901 | 1,957 |
PHP | 2 | 240 | 28 | 997 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.20MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/imageicon.png | 145.05KB | 48.05KB | ▼ 66.87% |
images/html.png | 5.29KB | 2.74KB | ▼ 48.23% |
images/close-whitetext.png | 1.74KB | 1.50KB | ▼ 13.43% |
images/melodic_logo.png | 6.49KB | 3.42KB | ▼ 47.37% |
images/edit.png | 2.56KB | 1.45KB | ▼ 43.36% |