Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.82MB] [CPU: ▼49.77ms] Passed 4 tests
Server-side resources used by NP ScrollUp
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.30 | 4.94 ▼34.68 |
Dashboard /wp-admin | 2.19 ▼1.12 | 7.07 ▼39.45 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 6.18 ▼40.12 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 5.83 ▼84.83 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 4.98 ▼26.95 |
NP ScrollUp Options /wp-admin/options-general.php?page=npscrollup-settings | 2.19 | 5.93 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for NP ScrollUp
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲195 | 14.35 ▼0.39 | 7.86 ▲5.67 | 44.39 ▼0.09 |
Dashboard /wp-admin | 2,232 ▲40 | 5.11 ▲0.17 | 101.37 ▼15.20 | 39.92 ▼6.40 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.30 ▲0.27 | 40.25 ▲4.98 | 35.12 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.76 ▲0.51 | 650.36 ▼33.22 | 35.51 ▼17.43 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.46 ▲0.28 | 97.03 ▼4.65 | 41.93 ▼0.41 |
NP ScrollUp Options /wp-admin/options-general.php?page=npscrollup-settings | 1,562 | 2.76 | 57.40 | 29.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function 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 np-custom--main handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=npscrollup-settings
- > User notice in wp-includes/functions.php+5905
Function 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 np-custom--main handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=npscrollup-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style 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 np_scroll_up handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=npscrollup-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style 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 np_scrollup_font_awesome 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/np-scrollup/np_scoll_up.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Screenshots: These screenshots have no corresponding images in /assets: #1 (In this screenshot, you can see the first half of the options panel of this plugin.), #2 (In this screenshot, you can see remaining of the options panel of this plugin.), #3 (In this screenshot, you can see a live demo of this plugin.), #4 (In this screenshot, you can see a live demo with scroll to the top text of this plugin.)
np-scrollup/np_scoll_up.php 85% from 13 tests
The main PHP file in "NP ScrollUp" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 221 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("np-scrollup.php" instead of "np_scoll_up.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,112 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 13 | 13 | 2,103 |
SVG | 1 | 0 | 0 | 655 |
PHP | 1 | 54 | 52 | 350 |
JavaScript | 2 | 0 | 6 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.60MB with 0.37MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 231.92KB | 68.37KB | ▼ 70.52% |
screenshot-2.png | 91.50KB | 43.25KB | ▼ 52.73% |
screenshot-1.png | 71.72KB | 34.29KB | ▼ 52.18% |
screenshot-3.png | 218.37KB | 63.94KB | ▼ 70.72% |