Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.35ms] Passed 4 tests
Analyzing server-side resources used by Smooth Scroll Up
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 42.04 ▲3.47 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.57 ▼3.19 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.37 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.87 ▼1.76 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.21 ▲1.21 |
Smooth Scroll Up /wp-admin/options-general.php?page=smooth-scroll-up | 3.30 | 36.36 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Smooth Scroll Up
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.51 ▼0.87 | 7.22 ▲5.54 | 38.60 ▼1.77 |
Dashboard /wp-admin | 2,210 ▲18 | 5.87 ▲0.93 | 107.59 ▼9.16 | 43.02 ▲0.63 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 39.08 ▼0.71 | 35.46 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 17.86 ▼5.33 | 588.11 ▼88.55 | 42.64 ▼8.46 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.19 ▲0.02 | 98.49 ▼5.20 | 40.82 ▼4.03 |
Smooth Scroll Up /wp-admin/options-general.php?page=smooth-scroll-up | 4,306 | 3.34 | 47.98 | 46.06 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 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/smooth-scroll-up/plugin.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
smooth-scroll-up/plugin.php 92% from 13 tests
"Smooth Scroll Up" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("smooth-scroll-up.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,762 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 933 | 1,127 | 2,047 |
PHP | 6 | 311 | 720 | 1,849 |
SVG | 1 | 0 | 0 | 685 |
CSS | 3 | 14 | 10 | 100 |
JavaScript | 2 | 10 | 10 | 81 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 41.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 10 | 13.89% |
▷ Public methods | 70 | 97.22% |
▷ Protected methods | 2 | 2.78% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/scrollup.png | 0.68KB | 0.69KB | 0.00% |