Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.68ms] Passed 4 tests
Server-side resources used by SS Awesome Scroll Top
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.23 ▼4.05 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.17 ▼16.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 58.98 ▲5.75 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.30 ▼14.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.18 ▼0.56 |
SS Awesome Scroll Top /wp-admin/options-general.php?page=ss-awesome-scroll-top-options | 3.23 | 37.79 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SS Awesome Scroll Top
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲98 | 13.35 ▼1.28 | 9.60 ▲7.70 | 43.94 ▲3.79 |
Dashboard /wp-admin | 2,206 ▲28 | 5.58 ▼0.10 | 92.68 ▼7.76 | 41.27 ▼2.51 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.00 ▲0.06 | 39.98 ▼0.89 | 41.60 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,436 ▼90 | 22.41 ▼0.58 | 512.29 ▼107.15 | 28.13 ▼25.41 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.23 ▲0.01 | 101.22 ▼0.51 | 38.76 ▼5.87 |
SS Awesome Scroll Top /wp-admin/options-general.php?page=ss-awesome-scroll-top-options | 856 | 2.04 | 27.39 | 27.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/ss-awesome-scroll-top/plugin.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot1.png), #2 (Screenshot2.png)
ss-awesome-scroll-top/plugin.php 92% from 13 tests
The primary PHP file in "SS Awesome Scroll Top" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ss-awesome-scroll-top.php" instead of "plugin.php")
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
Success! There were no dangerous files found in this plugin127 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 70 | 50 | 106 |
CSS | 1 | 7 | 1 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/rocket1.png | 2.71KB | 2.10KB | ▼ 22.42% |
Screenshot2.png | 19.59KB | 7.17KB | ▼ 63.39% |
Screenshot1.png | 55.61KB | 20.26KB | ▼ 63.58% |
img/rocket3.png | 2.77KB | 2.12KB | ▼ 23.53% |
img/rocket2.png | 7.06KB | 2.82KB | ▼ 60.07% |