Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼10.08ms] Passed 4 tests
Analyzing server-side resources used by Scroll tool
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 37.67 ▼7.84 |
Dashboard /wp-admin | 3.41 ▲0.10 | 47.76 ▼9.32 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.64 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.86 ▼19.18 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.58 ▲3.88 |
Scroll Tool /wp-admin/themes.php?page=scroll-tool | 3.44 | 31.70 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 107 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
lloo_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Scroll tool
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲97 | 13.83 ▼0.76 | 9.15 ▲7.29 | 45.33 ▲6.49 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▼0.03 | 86.28 ▼5.21 | 37.79 ▼5.19 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.98 ▼0.03 | 40.48 ▲3.81 | 37.62 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.91 ▼0.71 | 723.40 ▲108.04 | 56.91 ▲4.71 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.02 | 96.17 ▼9.96 | 40.71 ▼8.06 |
Scroll Tool /wp-admin/themes.php?page=scroll-tool | 2,054 | 2.26 | 41.64 | 74.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/scroll-tool/scroll-tool.php:608
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: sidebar, down, up, button, top...
scroll-tool/scroll-tool.php Passed 13 tests
The main PHP file in "Scroll tool" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
Allows to create scroll tool (button or sidebar) for your blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,992 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 62 | 10 | 1,163 |
PHP | 1 | 41 | 27 | 548 |
CSS | 3 | 9 | 1 | 245 |
SVG | 36 | 0 | 0 | 36 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
58 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/down-3.png | 0.36KB | 0.70KB | 0.00% |
img/colorpicker/colorpicker_submit.png | 0.73KB | 1.04KB | 0.00% |
img/up-7.png | 0.30KB | 0.53KB | 0.00% |
img/colorpicker/colorpicker_hex.png | 0.32KB | 0.42KB | 0.00% |
img/down-12.png | 0.27KB | 0.53KB | 0.00% |