Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼9.43ms] Passed 4 tests
A check of server-side resources used by jcwp scroll to top
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 35.88 ▼1.64 |
Dashboard /wp-admin | 3.49 ▲0.15 | 44.39 ▼13.57 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 48.12 ▼2.84 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 89.84 ▼19.65 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 33.74 ▲1.65 |
JCWP Scroll To Top /wp-admin/options-general.php?page=jcorgstp-plugin | 3.36 | 30.61 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 28 new options
New WordPress options |
---|
jcorgstp_linkback |
jcorgstp_zindex |
jcorgstp_position |
widget_recent-posts |
jcorgstp_scroleActivateAt |
db_upgraded |
jcorgstp_scrollText |
jcorgstp_disableon_tablet |
jcorgstp_scrollElementId |
jcorgstp_active |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for jcwp scroll to top
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲153 | 13.69 ▼0.95 | 9.03 ▲7.25 | 43.81 ▲4.34 |
Dashboard /wp-admin | 2,210 ▲25 | 5.88 ▼0.01 | 103.62 ▲1.73 | 39.02 ▲1.08 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.14 ▲0.14 | 38.23 ▼4.17 | 35.74 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 23.16 ▲5.53 | 641.79 ▼2.99 | 49.03 ▼3.37 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.05 | 95.68 ▼1.51 | 42.18 ▼1.05 |
JCWP Scroll To Top /wp-admin/options-general.php?page=jcorgstp-plugin | 1,300 | 2.08 | 24.79 | 46.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 28 options in the database
- jcorgstp_textPadding
- widget_theysaidso_widget
- db_upgraded
- jcorgstp_containerWidth
- jcorgstp_position
- widget_recent-comments
- theysaidso_admin_options
- jcorgstp_foreColor
- can_compress_scripts
- jcorgstp_scrollText
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=jcorgstp-plugin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=jcorgstp-plugin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 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 register_activation_hook() in wp-content/plugins/jcwp-scroll-to-top/jcwp-scroll-to-top.php:25
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== jcwp-scroll-to-top ===
) - Screenshots: These screenshots do not have images: #1 (A screen shot of the options page), #2 (Shows a style at the bottom of the page)
jcwp-scroll-to-top/jcwp-scroll-to-top.php Passed 13 tests
The primary PHP file in "jcwp scroll to top" version 1.7 is used by WordPress to initiate all plugin functionality
139 characters long description:
This plugin gives you granular control on styles and positioning of your 'Scroll to top' text. Many variety of easing animations supported.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin706 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 157 | 240 | 705 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.85 |
Average class complexity | 104.00 |
▷ Minimum class complexity | 104.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 6.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 3.21KB | 1.43KB | ▼ 55.48% |
screenshot-1.png | 39.90KB | 20.56KB | ▼ 48.46% |