Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.70MB] [CPU: ▼266.89ms] 75% from 4 tests
An overview of server-side resources used by Easy Smooth Scroll Links - Smooth Scrolling Anchor
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,539.13ms on /wp-admin/options-general.php?page=essl-plugin-options_options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.67 ▲5.16 | 78.61 ▲28.75 |
Dashboard /wp-admin | 8.69 ▲5.28 | 58.68 ▲25.26 |
Posts /wp-admin/edit.php | 8.69 ▲5.05 | 57.27 ▲19.91 |
Add New Post /wp-admin/post-new.php | 10.26 ▲3.29 | 116.89 ▼1,127.88 |
Media Library /wp-admin/upload.php | 8.69 ▲5.39 | 47.42 ▲15.14 |
Easy Smooth Scroll Links /wp-admin/options-general.php?page=essl-plugin-options_options | 8.69 | 1,539.13 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 8.69 | 44.98 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 170 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_accounts |
fs_gdpr |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Smooth Scroll Links - Smooth Scrolling Anchor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,944 ▲200 | 16.11 ▲0.40 | 9.88 ▲3.89 | 2.68 ▲0.66 |
Dashboard /wp-admin | 2,925 ▲74 | 6.16 ▼0.10 | 113.40 ▼26.66 | 164.05 ▲1.33 |
Posts /wp-admin/edit.php | 2,724 ▲36 | 3.24 ▼0.01 | 62.79 ▼0.12 | 159.18 ▲19.67 |
Add New Post /wp-admin/post-new.php | 1,674 ▼99 | 22.06 ▲1.04 | 395.27 ▼71.23 | 156.81 ▲0.74 |
Media Library /wp-admin/upload.php | 1,731 ▲33 | 5.52 ▼0.05 | 144.73 ▲3.04 | 202.21 ▲15.82 |
Easy Smooth Scroll Links /wp-admin/options-general.php?page=essl-plugin-options_options | 1,374 | 2.44 | 52.68 | 161.86 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 1,435 | 2.73 | 53.23 | 113.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/easy-smooth-scroll-links/wp-sdk/includes/class-freemius.php+8911
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 4 options
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- fs_gdpr
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-smooth-scroll-links/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-smooth-scroll-links/options.php:2
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
easy-smooth-scroll-links/index.php 92% from 13 tests
The principal PHP file in "Easy Smooth Scroll Links - Smooth Scrolling Anchor" v. 2.23.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-smooth-scroll-links.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin32,879 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 7,763 | 16,827 | 32,672 |
JavaScript | 4 | 34 | 59 | 195 |
CSS | 12 | 0 | 0 | 12 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,029)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 92.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,029.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,205 | |
▷ Static methods | 186 | 15.44% |
▷ Public methods | 846 | 70.21% |
▷ Protected methods | 15 | 1.24% |
▷ Private methods | 344 | 28.55% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 132 | |
▷ Global constants | 100 | 75.76% |
▷ Class constants | 32 | 24.24% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
wp-sdk/assets/img/Easy_Smooth_Scroll_Links.png | 26.13KB | 8.97KB | ▼ 65.66% |
wp-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |