Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▲2.46ms] Passed 4 tests
A check of server-side resources used by Sticky Buttons - floating buttons builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 44.73 ▲4.94 |
Dashboard /wp-admin | 3.46 ▲0.15 | 46.28 ▼2.08 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 46.62 ▲2.15 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.70 ▲7.86 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.67 ▲4.82 |
Welcome /wp-admin/admin.php?page=wow-company | 3.35 | 30.63 |
Sticky Buttons /wp-admin/admin.php?page=sticky-buttons | 3.47 | 35.76 |
Server storage [IO: ▲4.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 138 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wow_sbtn |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Sticky Buttons - floating buttons builder: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲69 | 14.34 ▲0.12 | 1.67 ▼0.40 | 43.75 ▼0.57 |
Dashboard /wp-admin | 2,264 ▲87 | 5.63 ▼0.02 | 91.35 ▼2.18 | 38.92 ▲0.81 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 2.03 ▲0.03 | 40.88 ▲5.34 | 31.94 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 18.28 ▼4.86 | 645.30 ▼29.15 | 61.45 ▲12.68 |
Media Library /wp-admin/upload.php | 1,460 ▲57 | 4.21 ▲0.01 | 100.39 ▼4.85 | 43.05 ▲1.21 |
Welcome /wp-admin/admin.php?page=wow-company | 925 | 2.00 | 26.06 | 38.80 |
Sticky Buttons /wp-admin/admin.php?page=sticky-buttons | 1,114 | 2.21 | 46.59 | 45.55 |
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
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_wow_sbtn
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/sticky-buttons/admin/settings/options/main.php:19
- > PHP Notice
Undefined variable: icons_new in wp-content/plugins/sticky-buttons/admin/settings/options/clone.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/sticky-buttons/admin/settings/options/clone.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Sticky Buttons 1), #2 (Sticky Buttons 2)
sticky-buttons/sticky-buttons.php Passed 13 tests
"Sticky Buttons - floating buttons builder" version 3.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Easily create sticky buttons of varying complexity.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin27,577 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 4,491 | 145 | 11,195 |
SVG | 4 | 0 | 0 | 9,571 |
PHP | 32 | 483 | 597 | 4,584 |
Sass | 14 | 187 | 1 | 1,192 |
JavaScript | 7 | 181 | 277 | 1,035 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.60 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 54 | |
▷ Static methods | 3 | 5.56% |
▷ Public methods | 46 | 85.19% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 7 | 12.96% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.26MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 68.26KB | 14.50KB | ▼ 78.76% |
screenshot-2.png | 72.14KB | 15.24KB | ▼ 78.88% |
includes/about/image/icon.png | 121.88KB | 28.08KB | ▼ 76.96% |
admin/assets/img/sticky-buttons-logo.png | 7.47KB | 3.39KB | ▼ 54.62% |