Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼7.57ms] Passed 4 tests
Analyzing server-side resources used by Floating Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 38.85 ▼13.34 |
Dashboard /wp-admin | 3.65 ▲0.30 | 47.02 ▼19.38 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 53.42 ▲7.01 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.27 | 83.04 ▼1.93 |
Media Library /wp-admin/upload.php | 3.51 ▲0.27 | 38.69 ▲4.36 |
Welcome /wp-admin/admin.php?page=wow-company | 3.47 | 32.44 |
Floating Button Lite /wp-admin/admin.php?page=floating-button | 3.70 | 41.28 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 134 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wow_fbtnp |
New WordPress options |
---|
wow_fbtnp_db_version |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Floating Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲105 | 14.33 ▼0.04 | 1.58 ▼0.21 | 41.89 ▼2.49 |
Dashboard /wp-admin | 2,264 ▲90 | 5.65 ▼0.03 | 91.33 ▼6.69 | 37.45 ▼5.96 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 2.04 ▲0.06 | 41.78 ▲7.74 | 38.05 ▲2.85 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.23 ▼0.03 | 681.30 ▼16.66 | 49.59 ▼8.38 |
Media Library /wp-admin/upload.php | 1,463 ▲63 | 4.38 ▲0.17 | 99.64 ▼6.20 | 41.16 ▼5.04 |
Welcome /wp-admin/admin.php?page=wow-company | 931 | 2.15 | 29.39 | 55.03 |
Floating Button Lite /wp-admin/admin.php?page=floating-button | 1,303 | 5.31 | 102.28 | 54.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wow_fbtnp
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- wow_fbtnp_db_version
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/floating-button/includes/pages/changelog.php:13
- > PHP Fatal error
Uncaught Error: Class 'FloatingButton\\Dashboard\\Field' not found in wp-content/plugins/floating-button/includes/settings/2.vertical.php:10
- > PHP Fatal error
Uncaught Error: Class 'FloatingButton\\Dashboard\\Field' not found in wp-content/plugins/floating-button/includes/settings/3.horizontal.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Contact), #2 (Example), #3 (Player), #4 (Profile), #5 (Social), #6 (Skype)
floating-button/floating-button.php Passed 13 tests
The main PHP script in "Floating Button" version 6.0.2 is automatically included on every request by WordPress
51 characters long description:
Easily Generate and manage sticky Floating Buttons.
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 plugin20,048 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 2,956 | 65 | 8,513 |
PHP | 49 | 1,565 | 508 | 7,902 |
JavaScript | 6 | 524 | 520 | 2,018 |
Sass | 28 | 243 | 12 | 1,596 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 25.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 2 | 6.67% |
Methods | 255 | |
▷ Static methods | 139 | 54.51% |
▷ Public methods | 196 | 76.86% |
▷ Protected methods | 1 | 0.39% |
▷ Private methods | 58 | 22.75% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wow-icon.png | 121.88KB | 28.08KB | ▼ 76.96% |
assets/img/plugin-logo.png | 15.67KB | 6.25KB | ▼ 60.12% |