Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/brozzme-scroll-top/includes/brozzme_divi_override.php+19
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.17ms] Passed 4 tests
Server-side resources used by Brozzme Scroll Top
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.92 ▲3.40 |
Dashboard /wp-admin | 3.52 ▲0.17 | 47.46 ▼9.97 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 51.26 ▲3.45 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 88.58 ▼5.55 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.06 ▲5.96 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 3.55 | 332.89 |
Scroll top /wp-admin/admin.php?page=brozzme-scroll-top | 3.40 | 39.19 |
Server storage [IO: ▲0.25MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
bst_general_settings |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Brozzme Scroll Top
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲203 | 13.79 ▼0.79 | 7.00 ▲5.26 | 44.80 ▲0.96 |
Dashboard /wp-admin | 2,258 ▲67 | 5.09 ▼0.81 | 98.90 ▲0.15 | 38.80 ▼1.06 |
Posts /wp-admin/edit.php | 2,140 ▲69 | 2.33 ▲0.30 | 41.45 ▲5.45 | 34.13 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,554 ▲12 | 17.81 ▼0.39 | 684.61 ▲84.20 | 36.83 ▼21.55 |
Media Library /wp-admin/upload.php | 1,440 ▲55 | 4.39 ▲0.25 | 97.37 ▼1.79 | 42.53 ▼1.47 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 1,150 | 2.03 | 25.56 | 49.15 |
Scroll top /wp-admin/admin.php?page=brozzme-scroll-top | 1,313 | 2.34 | 47.26 | 29.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method brozzme_scroll_top::uninstall() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- 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
Everything seems fine, however this is by no means 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 fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/brozzme-scroll-top/includes/brozzme_scrolltop_settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/brozzme-scroll-top/includes/brozzme_divi_override.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/brozzme-scroll-top/includes/brozzme_oceanwp_override.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/brozzme-scroll-top/brozzme_scroll_top.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Tags: There are too many tags (12 tag instead of maximum 10)
brozzme-scroll-top/brozzme_scroll_top.php 92% from 13 tests
The entry point to "Brozzme Scroll Top" version 1.8.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("brozzme-scroll-top.php" instead of "brozzme_scroll_top.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
Success! There were no dangerous files found in this plugin1,300 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 213 | 228 | 850 |
CSS | 3 | 23 | 21 | 245 |
PO File | 1 | 56 | 70 | 177 |
JavaScript | 3 | 10 | 9 | 22 |
SVG | 1 | 0 | 1 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 24.60 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/wpserveur-logo-400x80.png | 25.78KB | 8.87KB | ▼ 65.60% |
includes/img/logo-wps-200x200px.png | 30.17KB | 7.41KB | ▼ 75.43% |
includes/img/300x300.png | 59.90KB | 11.67KB | ▼ 80.51% |