Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.45ms] Passed 4 tests
A check of server-side resources used by CG Scroll To Top
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 45.73 ▼0.22 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.11 ▼3.62 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 58.70 ▲7.57 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 89.29 ▼14.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.08 ▲0.57 |
CG Scroll To Top /wp-admin/options-general.php?page=cg-scroll-to-top-plugin | 3.29 | 39.41 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CG Scroll To Top
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,982 ▲221 | 14.99 ▲0.37 | 2.57 ▲0.85 | 44.82 ▲0.90 |
Dashboard /wp-admin | 2,356 ▲176 | 6.38 ▲0.76 | 112.87 ▲20.12 | 38.83 ▼2.93 |
Posts /wp-admin/edit.php | 2,290 ▲190 | 3.55 ▲1.54 | 55.39 ▲13.45 | 37.31 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.28 ▲0.09 | 666.66 ▼8.40 | 39.15 ▼22.00 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.37 ▲0.18 | 82.90 ▼25.75 | 41.80 ▼2.29 |
CG Scroll To Top /wp-admin/options-general.php?page=cg-scroll-to-top-plugin | 1,753 | 3.62 | 68.19 | 80.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cg-scroll-to-top/cg-scroll-css-jquery.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cg-scroll-to-top/cg_scroll_to_top_backend.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cg-scroll-to-top/cg-scroll-to-top.php:14
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (**Custom scroller** - Blue color in the image shows the part of webpage scrolled and the unfilled part shows remaining contents in the page), #2 (**Scroller info** - It shows area of webpage left unread. Clicking on it will take you to the top of the page with animated effects.), #3 (**Custom Scroller Design** - It shows the admin panel from where you can customize your designs. Its very simple and easy to choose.), #4 (**Custom Scroller Settings** - It shows different options to choose for designing your own scroll to top icon as per your theme.)
cg-scroll-to-top/cg-scroll-to-top.php Passed 13 tests
The entry point to "CG Scroll To Top" version 3.5 is a PHP file that has certain tags in its header comment area
44 characters long description:
A Fancy Scroll to Top with lot's of effects.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected589 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 20 | 16 | 485 |
CSS | 1 | 8 | 5 | 58 |
JavaScript | 2 | 0 | 0 | 46 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.61MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
custom-scroller.png | 2.97KB | 1.44KB | ▼ 51.43% |
scroller-info.png | 106.53KB | 30.42KB | ▼ 71.44% |
screenshot-1.png | 2.97KB | 1.44KB | ▼ 51.43% |
screenshot-4.png | 140.92KB | 39.63KB | ▼ 71.88% |
screenshot-3.png | 132.86KB | 35.55KB | ▼ 73.24% |