Benchmarks
Plugin footprint 83% 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.12MB] [CPU: ▼2.06ms] Passed 4 tests
An overview of server-side resources used by Click to Scroll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 47.36 ▲11.22 |
Dashboard /wp-admin | 3.50 ▲0.16 | 49.15 ▼12.03 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 53.96 ▲6.32 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 92.07 ▼2.68 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.45 ▲0.15 |
Click to Scroll /wp-admin/options-general.php?page=cts-options | 3.33 | 35.88 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
cts_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Click to Scroll
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,090 ▲355 | 15.88 ▲1.13 | 8.25 ▲6.55 | 46.09 ▲0.06 |
Dashboard /wp-admin | 2,382 ▲191 | 6.65 ▲1.80 | 141.26 ▲37.64 | 42.09 ▼1.96 |
Posts /wp-admin/edit.php | 2,291 ▲199 | 3.57 ▲1.57 | 57.26 ▲16.43 | 34.97 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,566 ▲33 | 18.44 ▼4.65 | 634.92 ▼53.07 | 35.70 ▼29.36 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.36 ▼0.02 | 84.88 ▼32.47 | 43.00 ▼3.33 |
Click to Scroll /wp-admin/options-general.php?page=cts-options | 1,673 | 4.33 | 75.62 | 28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/click-to-scroll/inc/CTS_Backend.php:19
- > PHP Fatal error
Uncaught Error: Call to a member function cts_get_options() on null in wp-content/plugins/click-to-scroll/inc/CTS_Frontend.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Requires at least: Invalid plugin version format
click-to-scroll/click-to-scroll.php Passed 13 tests
"Click to Scroll" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Add a customizable scroll-to-top button to your site and the admin area
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin682 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 103 | 43 | 474 |
JavaScript | 3 | 40 | 11 | 137 |
CSS | 3 | 12 | 0 | 71 |
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.28 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 82.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.07% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin