Benchmarks
Plugin footprint 83% 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: ▲0.05MB] [CPU: ▼142.58ms] Passed 4 tests
An overview of server-side resources used by CRUDLab Scroll to Top
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 41.85 ▲4.28 |
Dashboard /wp-admin | 3.12 ▲0.06 | 53.99 ▼1.83 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 49.90 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 96.25 ▼570.94 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 37.51 ▲1.37 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 57 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_wpsctotop |
New WordPress options |
---|
wpfblike_db_version |
Browser metrics Passed 4 tests
CRUDLab Scroll to Top: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,734 ▲138 | 16.27 ▲0.78 | 10.90 ▲2.98 | 52.33 ▲1.35 |
Dashboard /wp-admin | 2,986 ▲55 | 5.90 ▼0.05 | 145.44 ▼5.61 | 136.84 ▲15.87 |
Posts /wp-admin/edit.php | 2,777 ▲38 | 2.70 ▲0.01 | 69.60 ▲1.37 | 98.50 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,516 ▼167 | 18.77 ▲0.36 | 395.08 ▲1.64 | 113.76 ▲3.05 |
Media Library /wp-admin/upload.php | 1,771 ▼39 | 5.01 ▼0.02 | 131.57 ▼21.04 | 154.01 ▲28.38 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- wpfblike_db_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: top, goto top, back to top, go to top, scroll to top
crudlab-scroll-to-top/wpsctotop.php 92% from 13 tests
"CRUDLab Scroll to Top" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("crudlab-scroll-to-top.php" instead of "wpsctotop.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin37,148 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 0 | 0 | 28,312 |
CSS | 5 | 44 | 32 | 6,262 |
JSON | 1 | 0 | 0 | 2,106 |
PHP | 1 | 46 | 13 | 345 |
JavaScript | 3 | 29 | 29 | 123 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 0 | |
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 | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_style7.png | 7.10KB | 2.64KB | ▼ 62.84% |
img/icon_style2.png | 0.97KB | 0.89KB | ▼ 8.65% |
img/icon_style11.png | 1.99KB | 0.99KB | ▼ 50.07% |
img/icon_style10.png | 2.60KB | 0.95KB | ▼ 63.47% |
img/icon_style12.png | 0.85KB | 0.63KB | ▼ 25.89% |