Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.07ms] Passed 4 tests
An overview of server-side resources used by Ultimate Sticky Popup & Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.79 ▲1.54 |
Dashboard /wp-admin | 3.42 ▲0.12 | 51.61 ▲1.12 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.74 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 88.96 ▼10.17 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.80 ▼2.10 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Ultimate Sticky Popup & Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲157 | 13.92 ▼0.67 | 8.03 ▲6.29 | 42.83 ▼2.77 |
Dashboard /wp-admin | 2,223 ▲32 | 5.81 ▲0.92 | 101.12 ▼10.05 | 43.35 ▼1.25 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▲0.01 | 36.43 ▼5.12 | 33.17 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,531 ▲10 | 23.16 ▼0.09 | 638.34 ▼28.91 | 50.11 ▼1.75 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.27 ▲0.11 | 95.27 ▼7.51 | 41.33 ▼6.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Ultimate_Sticky_Popup_And_Widgets' not found in wp-content/plugins/ultimate-sticky-popup-widgets/admin/partials/ultimate-sticky-popup-and-widgets-admin-display.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-sticky-popup-widgets/public/partials/ultimate-sticky-popup-and-widgets-public-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_permalink() in wp-content/plugins/ultimate-sticky-popup-widgets/public/partials/uspaw-social-share-display.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: sticky popup, popup, popup and widgets, sticky popup and widgets
ultimate-sticky-popup-widgets/ultimate-sticky-popup-and-widgets.php 77% from 13 tests
"Ultimate Sticky Popup & Widgets" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 243 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-sticky-popup-widgets.php" instead of "ultimate-sticky-popup-and-widgets.php")
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
Everything looks great! No dangerous files found in this plugin1,844 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 73 | 26 | 918 |
PHP | 13 | 144 | 560 | 693 |
JavaScript | 10 | 38 | 69 | 174 |
SVG | 1 | 0 | 1 | 59 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 3 | 8.33% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
3 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/any-post-slider.png | 107.80KB | 44.55KB | ▼ 58.68% |
admin/images/cf7-to-any-api.png | 88.19KB | 31.22KB | ▼ 64.60% |
public/images/envelope.png | 1.41KB | 0.80KB | ▼ 43.07% |