Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.12ms] Passed 4 tests
A check of server-side resources used by Auto scroll for reading
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 45.55 ▲2.91 |
Dashboard /wp-admin | 3.52 ▲0.21 | 49.53 ▼7.48 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 51.28 ▼1.01 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 90.02 ▼4.25 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 40.98 ▲0.28 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wpgautoscroll_settings |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
wpg_auto_scroll_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Auto scroll for reading: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.80 ▼0.60 | 8.84 ▲7.18 | 37.20 ▼8.80 |
Dashboard /wp-admin | 2,193 ▲19 | 5.56 ▲0.02 | 95.48 ▼5.72 | 76.92 ▲33.01 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▲0.02 | 38.67 ▲1.72 | 33.38 ▼5.06 |
Add New Post /wp-admin/post-new.php | 1,692 ▲164 | 22.43 ▼0.58 | 661.30 ▼51.56 | 59.89 ▲0.12 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.19 ▼0.01 | 99.43 ▼14.38 | 81.63 ▲34.01 |
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
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 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 0% 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/auto-scroll-for-reading/admin/partials/auto-scroll-for-reading-admin-display.php
- > /wp-content/plugins/auto-scroll-for-reading/public/partials/auto-scroll-for-reading-public-display.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(AUTO_SCROLL_FOR_READING_ADMIN_PATH/partials/settings/auto-scroll-for-reading-settings-actions-options.php): failed to open stream: No such file or directory in wp-content/plugins/auto-scroll-for-reading/admin/partials/settings/auto-scroll-for-reading-settings-display.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'AUTO_SCROLL_FOR_READING_ADMIN_PATH/partials/settings/auto-scroll-for-reading-settings-actions-options.php' (include_path='.:/usr/share/php') in wp-content/plugins/auto-scroll-for-reading/admin/partials/settings/auto-scroll-for-reading-settings-display.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-scroll-for-reading/admin/partials/settings/auto-scroll-for-reading-settings-actions-options.php:2
- > PHP Warning
Use of undefined constant AUTO_SCROLL_FOR_READING_ADMIN_PATH - assumed 'AUTO_SCROLL_FOR_READING_ADMIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-scroll-for-reading/admin/partials/settings/auto-scroll-for-reading-settings-display.php on line 2
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in auto-scroll-for-reading/assets to your readme.txt
auto-scroll-for-reading/auto-scroll-for-reading.php Passed 13 tests
The entry point to "Auto scroll for reading" version 1.1.2 is a PHP file that has certain tags in its header comment area
85 characters long description:
Let your readers easily scroll your content. Add automatic scrolling to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,248 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 16 | 198 | 573 | 801 |
JavaScript | 7 | 89 | 92 | 430 |
CSS | 8 | 57 | 24 | 346 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 5 | 11.90% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.90% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icons/auto-scroll-for-reading-logo.png | 0.64KB | 0.64KB | 0.00% |