Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.13ms] Passed 4 tests
This is a short check of server-side resources used by Smooth Scroller
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.09 ▲0.86 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.33 ▼5.85 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.68 ▼4.60 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.73 ▲1.09 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.60 ▲3.05 |
Smooth Scroller /wp-admin/plugins.php?page=smooth-scroller/beek-smooth-scroller.php | 3.24 | 29.67 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Smooth Scroller
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲158 | 13.62 ▼0.68 | 9.12 ▲7.52 | 41.77 ▲0.74 |
Dashboard /wp-admin | 2,212 ▲24 | 5.85 ▼0.05 | 95.25 ▼9.67 | 38.17 ▼4.27 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.01 | 35.54 ▼4.27 | 33.04 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 18.20 ▼5.14 | 602.01 ▼73.07 | 53.69 ▼9.21 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.30 ▲0.14 | 103.75 ▼26.31 | 44.49 ▼14.14 |
Smooth Scroller /wp-admin/plugins.php?page=smooth-scroller/beek-smooth-scroller.php | 921 | 2.02 | 21.58 | 31.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 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-scroller/beek-smooth-scroller.php:30
- > 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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: scroll, smooth, plugin
smooth-scroller/beek-smooth-scroller.php 92% from 13 tests
The main PHP file in "Smooth Scroller" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("smooth-scroller.php" instead of "beek-smooth-scroller.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,910 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2 | 13 | 2,024 |
Sass | 13 | 28 | 24 | 1,520 |
LESS | 13 | 28 | 34 | 1,510 |
SVG | 1 | 0 | 0 | 640 |
PHP | 1 | 33 | 24 | 133 |
PO File | 1 | 22 | 23 | 69 |
JavaScript | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 55.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 44.44% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
PNG images were not found in this plugin