Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.33MB] [CPU: ▼13.33ms] Passed 4 tests
Server-side resources used by WP-Smooth-Scroll
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.44 ▼37.35 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.61 ▼6.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.98 ▼1.19 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.66 ▼7.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.29 ▲2.00 |
Settings /wp-admin/admin.php?page=WP-Smooth-Scroll-settings | 3.22 | 30.71 |
About /wp-admin/admin.php?page=WP-Smooth-Scroll-about | 3.21 | 30.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP-Smooth-Scroll
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲158 | 13.60 ▼0.98 | 6.05 ▲4.14 | 43.75 ▲2.94 |
Dashboard /wp-admin | 2,233 ▲45 | 5.89 ▲0.00 | 109.64 ▲5.33 | 42.11 ▼2.44 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.01 ▼0.02 | 38.69 ▲0.20 | 35.69 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.19 ▲5.50 | 671.12 ▼14.59 | 52.51 ▼5.44 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.23 ▲0.02 | 105.93 ▼5.78 | 46.96 ▲1.06 |
Settings /wp-admin/admin.php?page=WP-Smooth-Scroll-settings | 823 | 2.04 | 23.95 | 59.67 |
About /wp-admin/admin.php?page=WP-Smooth-Scroll-about | 869 | 2.05 | 26.60 | 33.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-smooth-scroll/settingpage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-smooth-scroll/helppage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-smooth-scroll/wp-smooth-scroll.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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:
- Screenshots: Add images for these screenshots: #1 (WP-Smooth-Scroll on Bottom-right position.), #2 (WP-Smooth-Scroll on Bottom-right position after mouse hover.), #3 (WP-Smooth-Scroll on Bottom-middle position with dark background of the theme.), #4 (WP-Smooth-Scroll on Bottom-middle position after mouse hover with dark background of the theme.)
wp-smooth-scroll/wp-smooth-scroll.php Passed 13 tests
The main PHP file in "WP-Smooth-Scroll" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
WP-Smooth-Scroll is a plugin that helps users to scroll smoothly to top of the page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected543 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 9 | 8 | 328 |
PHP | 3 | 40 | 37 | 199 |
JavaScript | 1 | 1 | 1 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 60.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 2.15KB | 1.67KB | ▼ 22.39% |
screenshot-2.png | 2.74KB | 2.13KB | ▼ 22.42% |
screenshot-4.png | 2.19KB | 1.89KB | ▼ 13.81% |
screenshot-3.png | 1.80KB | 1.63KB | ▼ 9.43% |
images/wp-smooth-scroll.png | 6.50KB | 2.88KB | ▼ 55.62% |