Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼15.04ms] Passed 4 tests
Analyzing server-side resources used by Scroll Top Advanced - Scroll to ID or Class
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 26.21 ▼15.83 |
Dashboard /wp-admin | 3.38 ▲0.03 | 44.56 ▼14.71 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.73 ▼4.09 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 79.51 ▼25.53 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.81 ▲1.74 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Scroll Top Advanced - Scroll to ID or Class
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲160 | 13.63 ▼0.75 | 5.72 ▲3.94 | 37.81 ▼6.08 |
Dashboard /wp-admin | 2,219 ▲34 | 5.81 ▼0.24 | 95.40 ▼5.92 | 38.59 ▼1.21 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▼0.01 | 32.71 ▼8.65 | 37.82 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,555 ▲36 | 18.42 ▼4.76 | 599.81 ▼4.09 | 49.25 ▲0.38 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.33 ▲0.09 | 94.58 ▼4.46 | 42.20 ▼0.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-top-advanced/main.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-top-advanced/main.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
scroll-top-advanced/index.php 69% from 13 tests
The main PHP script in "Scroll Top Advanced - Scroll to ID or Class" version 2.5 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("scroll-top-advanced.php" instead of "index.php")
- Domain Path: The domain path should use only dashes and lowercase characters ("Domain Path")
- Domain Path: Prefix the domain path with a forward slash character ("/Domain Path")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,911 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 331 | 12 | 1,810 |
SVG | 1 | 0 | 0 | 640 |
PHP | 2 | 16 | 17 | 354 |
JavaScript | 2 | 13 | 6 | 107 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
94 PNG files occupy 0.36MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/icons/22.png | 7.24KB | 3.44KB | ▼ 52.45% |
image/icons/74.png | 0.22KB | 0.14KB | ▼ 36.61% |
image/icons/82.png | 1.12KB | 1.04KB | ▼ 6.64% |
image/icons/10.png | 2.66KB | 2.29KB | ▼ 13.83% |
image/icons/51.png | 3.90KB | 2.79KB | ▼ 28.52% |