Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.08ms] Passed 4 tests
This is a short check of server-side resources used by jQuery Smooth Scroll
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.04 ▲1.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.00 ▼7.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.63 ▼0.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.35 ▼5.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.54 ▲0.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by jQuery Smooth Scroll
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲151 | 13.61 ▼1.07 | 6.74 ▲5.16 | 42.87 ▼4.08 |
Dashboard /wp-admin | 2,209 ▲18 | 5.86 ▲0.78 | 99.48 ▼16.07 | 43.18 ▲2.02 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.03 | 34.35 ▼3.08 | 32.29 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.29 ▼5.08 | 586.88 ▼98.85 | 52.77 ▼10.15 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.05 | 94.29 ▼7.45 | 40.99 ▼5.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: smooth scroll, scroll to top, jquery, smooth scroll anchor, top of page...
jquery-smooth-scroll/jquery-smooth-scroll.php 92% from 13 tests
"jQuery Smooth Scroll" version 1.4.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin98 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 39 | 37 |
JavaScript | 2 | 17 | 23 | 35 |
CSS | 2 | 11 | 7 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blogsynthesis-100px.png | 3.93KB | 4.04KB | 0.00% |
screenshot-2.png | 1.17KB | 1.14KB | ▼ 2.33% |
screenshot-1.png | 1.56KB | 1.53KB | ▼ 1.81% |
images/arrow.png | 0.20KB | 0.27KB | 0.00% |
images/email-16px.png | 0.50KB | 0.50KB | 0.00% |