Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.72ms] Passed 4 tests
An overview of server-side resources used by Back To Top Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.56 ▼0.09 |
Dashboard /wp-admin | 3.35 ▲0.01 | 46.96 ▼16.49 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 45.90 ▼3.27 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.21 ▼19.01 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 44.13 ▲6.61 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
ztb_id |
ztb_access_key |
ztb_source |
ztb_email |
can_compress_scripts |
ztb_domainid |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Back To Top Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲48 | 14.77 ▲0.09 | 1.65 ▼0.22 | 43.35 ▲0.16 |
Dashboard /wp-admin | 2,228 ▲40 | 5.84 ▼0.22 | 100.10 ▼12.84 | 80.99 ▲34.99 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 2.02 ▲0.00 | 33.32 ▼1.87 | 32.68 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,684 ▲151 | 22.52 ▼0.68 | 725.56 ▲52.95 | 46.18 ▼18.13 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.27 ▲0.11 | 98.96 ▼15.48 | 71.40 ▲22.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 14 options in the database
- ztb_email
- theysaidso_admin_options
- ztb_id
- widget_recent-posts
- ztb_domainid
- widget_recent-comments
- ztb_access_key
- access_key
- ztb_source
- can_compress_scripts
- ...
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/back-to-top-pro/back-to-top.php:15
- > 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 93% 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:
- Donate link: Please fix this invalid url: ""
back-to-top-pro/back-to-top.php 92% from 13 tests
The main file in "Back To Top Pro" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("back-to-top-pro.php" instead of "back-to-top.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin501 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 4 | 273 |
PHP | 1 | 19 | 15 | 188 |
JavaScript | 1 | 4 | 0 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bg_body.png | 22.84KB | 9.83KB | ▼ 56.98% |
zotabox.png | 3.19KB | 0.44KB | ▼ 86.31% |
assets/images/logo-zotabox.png | 5.45KB | 2.43KB | ▼ 55.35% |
assets/images/check.png | 2.96KB | 0.37KB | ▼ 87.47% |