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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.51MB] [CPU: ▲2.87ms] Passed 4 tests
An overview of server-side resources used by wp-scroll-up
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.50 | 50.93 ▲8.64 |
Dashboard /wp-admin | 3.82 ▲0.51 | 54.22 ▲4.66 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 56.34 ▲6.18 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 91.93 ▼5.25 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 43.58 ▲5.90 |
WP Scroll Up /wp-admin/options-general.php?page=wp-scroll-up | 3.65 | 37.47 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 240 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for wp-scroll-up
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 13.80 ▼0.61 | 11.03 ▲9.28 | 42.32 ▼6.60 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.05 | 92.67 ▲0.95 | 42.30 ▼1.77 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.03 | 39.13 ▲2.34 | 36.29 ▲5.30 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.13 ▼0.09 | 678.58 ▼5.23 | 59.19 ▲8.80 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.08 ▼0.12 | 100.54 ▼8.28 | 43.56 ▼4.04 |
WP Scroll Up /wp-admin/options-general.php?page=wp-scroll-up | 916 | 3.17 | 54.15 | 26.81 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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 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
Please take a closer look at the following
- 141× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Encase\\ContainerItem' not found in wp-content/plugins/wp-scroll-up/vendor/dsawardekar/encase-php/src/Encase/SingletonItem.php:8
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/Node/Expression/Unary/Neg.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/Node/Expression/TempName.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/Extension/Escaper.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/Node/Expression/Constant.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseOr.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/Node/Expression/Binary/And.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/Node/Expression/Binary/GreaterEqual.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/TokenParser/AutoEscape.php:30
- > PHP Fatal error
Uncaught Error: Class 'Twig_Filter' not found in wp-content/plugins/wp-scroll-up/vendor/twig/twig/lib/Twig/Filter/Method.php:20
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Screenshot 1), #2 (Screenshot 2)
wp-scroll-up/wp-scroll-up.php Passed 13 tests
The primary PHP file in "wp-scroll-up" version 0.5.1 is used by WordPress to initiate all plugin functionality
54 characters long description:
WordPress Integration with the scrollUp jQuery Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin23,735 lines of code in 230 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,893 | 7,955 | 12,347 |
PHP | 216 | 2,668 | 5,122 | 11,051 |
JSON | 1 | 0 | 0 | 248 |
CSS | 6 | 6 | 4 | 79 |
HTML | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 192 | |
▷ Abstract classes | 10 | 5.21% |
▷ Concrete classes | 182 | 94.79% |
▷ Final classes | 0 | 0.00% |
Methods | 1,136 | |
▷ Static methods | 16 | 1.41% |
▷ Public methods | 1,026 | 90.32% |
▷ Protected methods | 108 | 9.51% |
▷ Private methods | 2 | 0.18% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 38 | |
▷ Global constants | 1 | 2.63% |
▷ Class constants | 37 | 97.37% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/top.png | 1.71KB | 0.69KB | ▼ 59.35% |