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.00MB] [CPU: ▼4.73ms] Passed 4 tests
This is a short check of server-side resources used by Simple Scroll Up Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.80 ▼0.00 |
Dashboard /wp-admin | 3.32 ▼0.02 | 50.95 ▼15.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.55 ▼2.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 120.82 ▲13.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.79 ▼0.87 |
Simple Scroll Up Button /wp-admin/admin.php?page=simple-scroll-up-button | 3.21 | 29.38 |
Settings /wp-admin/admin.php?page=simple-scroll-up-button-config | 3.21 | 34.28 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simple Scroll Up Button: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.68 ▼0.49 | 2.27 ▲0.23 | 44.12 ▲0.77 |
Dashboard /wp-admin | 2,244 ▲44 | 4.86 ▼1.05 | 116.11 ▲14.44 | 42.39 ▼4.59 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 2.06 ▲0.09 | 37.19 ▼3.81 | 30.86 ▼6.86 |
Add New Post /wp-admin/post-new.php | 1,564 ▲19 | 23.34 ▲0.23 | 595.35 ▼10.38 | 50.93 ▲7.52 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.15 ▼0.10 | 97.26 ▼8.10 | 42.01 ▼4.47 |
Simple Scroll Up Button /wp-admin/admin.php?page=simple-scroll-up-button | 782 | 2.05 | 23.79 | 26.53 |
Settings /wp-admin/admin.php?page=simple-scroll-up-button-config | 814 | 2.02 | 33.96 | 26.48 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-scroll-up-button/simple-scroll-up-button.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function SimpleScrollUpButton\\plugin_dir_path() in wp-content/plugins/simple-scroll-up-button/admin/simple-scroll-up-button.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Button setting)
simple-scroll-up-button/simple-scroll-up-button.php 92% from 13 tests
The main PHP file in "Simple Scroll Up Button" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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 detected250 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 37 | 28 | 178 |
PO File | 1 | 8 | 9 | 32 |
CSS | 1 | 2 | 0 | 23 |
JavaScript | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 8 | 61.54% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin