Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.64ms] Passed 4 tests
A check of server-side resources used by NS Smooth scroll back to top
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.27 ▲1.46 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.54 ▼3.52 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 44.23 ▼2.03 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 83.28 ▼14.46 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.78 ▲2.74 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.21 | 33.42 |
Back To Top /wp-admin/admin.php?page=ns-btta-options-page | 3.30 | 35.60 |
/wp-admin/admin.php?page=plugineye166 | 3.24 | 43.91 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
btta_reviews_installed_on |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by NS Smooth scroll back to top
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲210 | 13.81 ▼0.82 | 5.48 ▲3.80 | 38.58 ▼9.26 |
Dashboard /wp-admin | 2,245 ▲57 | 5.02 ▼0.87 | 101.95 ▼12.92 | 85.36 ▲38.10 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.33 ▲0.32 | 34.87 ▼1.48 | 33.80 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,719 ▲191 | 22.64 ▲4.28 | 782.90 ▲133.52 | 34.89 ▼33.27 |
Media Library /wp-admin/upload.php | 1,442 ▲57 | 4.37 ▲0.16 | 107.35 ▲8.52 | 43.03 ▲0.58 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 689 | 1.16 | 7.32 | 18.52 |
Back To Top /wp-admin/admin.php?page=ns-btta-options-page | 1,760 | 10.94 | 300.87 | 57.71 |
/wp-admin/admin.php?page=plugineye166 | 935 | 2.02 | 28.04 | 26.23 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- btta_reviews_installed_on
- db_upgraded
- theysaidso_admin_options
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 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/ns-smooth-scroll-back-to-top/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > 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 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add images for these screenshots: #1 (View NS Smooth scroll back to top in site.), #2 (View NS Smooth scroll back to top in mobile.), #3 (Settings NS Smooth scroll back to top.)
ns-smooth-scroll-back-to-top/ns-back-to-top-arrow.php 92% from 13 tests
"NS Smooth scroll back to top" version 1.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ns-smooth-scroll-back-to-top.php" instead of "ns-back-to-top-arrow.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
Good job! No executable or dangerous file extensions detected2,916 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 187 | 343 | 1,139 |
SVG | 2 | 0 | 0 | 943 |
CSS | 6 | 68 | 14 | 643 |
JavaScript | 4 | 26 | 6 | 100 |
PO File | 1 | 34 | 42 | 91 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 15 | 44.12% |
▷ Public methods | 20 | 58.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 41.18% |
Functions | 24 | |
▷ Named functions | 14 | 58.33% |
▷ Anonymous functions | 10 | 41.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.55MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 295.07KB | 129.43KB | ▼ 56.14% |
screenshot-3.png | 56.33KB | 16.64KB | ▼ 70.47% |
ns-admin-options/img/placeholder.png | 2.75KB | 2.92KB | 0.00% |
ns-admin-options/img/ns-theme-promo.png | 29.37KB | 8.96KB | ▼ 69.50% |
screenshot-1.png | 155.72KB | 51.85KB | ▼ 66.70% |