Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼146.19ms] Passed 4 tests
A check of server-side resources used by Smoothscroller
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▲0.04 | 23.97 ▼8.09 |
Dashboard /wp-admin | 3.11 ▲0.06 | 45.24 ▲0.33 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 47.11 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 96.38 ▼574.49 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 33.57 ▼1.84 |
Smoothscroller /wp-admin/options-general.php?page=smoothscroller | 3.02 | 31.88 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Smoothscroller
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.15 ▲0.23 | 8.97 ▼3.63 | 48.75 ▼7.65 |
Dashboard /wp-admin | 2,997 ▲63 | 5.94 ▲0.00 | 155.58 ▲7.14 | 125.27 ▼12.29 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.00 | 73.34 ▲3.62 | 94.04 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.78 ▲0.04 | 395.50 ▲2.53 | 113.59 ▼1.41 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.03 | 172.00 ▲22.75 | 130.23 ▲6.51 |
Smoothscroller /wp-admin/options-general.php?page=smoothscroller | 1,121 | 2.09 | 64.17 | 88.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/smoothscroller/inc/options-page-wrapper.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== smoothscroller ===
)
smoothscroller/smoothscroller.php Passed 13 tests
"Smoothscroller" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Smooth Scroll to internal links in WordPress
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
There were no executable files found in this plugin192 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 87 | 87 | 187 |
JavaScript | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected