Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼134.25ms] Passed 4 tests
Server-side resources used by X-Scroll To Top - Responsive
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▲0.08 | 22.76 ▲2.35 |
Dashboard /wp-admin | 3.13 ▲0.08 | 39.57 ▲0.88 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 43.70 ▼0.12 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 93.34 ▼540.11 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 37.81 ▲4.72 |
Server storage [IO: ▲0.06MB] [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: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by X-Scroll To Top - Responsive
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲233 | 16.31 ▲0.75 | 14.49 ▲5.31 | 63.24 ▲16.61 |
Dashboard /wp-admin | 2,973 ▲42 | 6.04 ▼0.03 | 143.18 ▼7.99 | 103.87 ▼16.82 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 60.49 ▼4.35 | 85.47 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.80 ▼2.56 | 431.75 ▲142.45 | 103.38 ▲4.14 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.04 ▼0.02 | 151.10 ▼12.12 | 112.38 ▼1.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/x-scroll-to-top-responsive/inc/class-XSTR-custom-customizer.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: scroll up button, scroll button, free scroll to top, responsive, scroll up...
x-scroll-to-top-responsive/plugin-hook.php 92% from 13 tests
The main PHP file in "X-Scroll To Top - Responsive" ver. 3.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("x-scroll-to-top-responsive.php" instead of "plugin-hook.php")
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
Success! There were no dangerous files found in this plugin713 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 154 | 290 | 354 |
CSS | 3 | 41 | 25 | 249 |
JavaScript | 3 | 22 | 39 | 84 |
SVG | 1 | 14 | 0 | 26 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 5 | 35.71% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin