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
Installer ran successfully
Server metrics [RAM: ▼1.84MB] [CPU: ▼187.49ms] Passed 4 tests
Server-side resources used by LZ Scroll Up
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.04 | 4.87 ▼29.60 |
Dashboard /wp-admin | 1.81 ▼1.24 | 5.83 ▼31.40 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.35 ▼42.99 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 4.73 ▼645.96 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 5.82 ▼27.38 |
LZ Scroll Up /wp-admin/options-general.php?page=lzscrollup-settings | 1.81 | 5.39 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for LZ Scroll Up
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,859 ▲263 | 16.50 ▲0.86 | 19.26 ▲9.67 | 47.85 ▲1.43 |
Dashboard /wp-admin | 3,005 ▲74 | 6.62 ▲0.49 | 151.71 ▼3.37 | 121.24 ▲17.32 |
Posts /wp-admin/edit.php | 2,777 ▲41 | 3.04 ▲0.32 | 70.23 ▼0.27 | 103.02 ▲11.17 |
Add New Post /wp-admin/post-new.php | 1,531 ▼152 | 18.44 ▼0.34 | 481.58 ▲102.83 | 121.47 ▲13.30 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 5.41 ▲0.35 | 144.13 ▼8.01 | 113.22 ▼0.28 |
LZ Scroll Up /wp-admin/options-general.php?page=lzscrollup-settings | 1,794 | 3.11 | 97.08 | 78.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the lz-scroll-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=lzscrollup-settings
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the lz-scroll-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lz-scroll-up/main-hooks.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Contributors: The plugin contributors field is missing
- Tags: You are using too many tags: 11 tag instead of maximum 10
lz-scroll-up/main-hooks.php 85% from 13 tests
This is the main PHP file of "LZ Scroll Up" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lz-scroll-up.php" instead of "main-hooks.php")
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
There were no executable files found in this plugin267 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 19 | 143 |
JavaScript | 2 | 24 | 17 | 124 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin