Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/jquery-vertical-scroller/sg-jqvs-widget-plugin.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; sg_jquery_scroller_widget has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼56.74ms] Passed 4 tests
A check of server-side resources used by jQuery Vertical Scroller
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.30 | 4.73 ▼35.52 |
Dashboard /wp-admin | 2.19 ▼1.12 | 5.59 ▼43.42 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 5.80 ▼45.83 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 6.14 ▼102.18 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.46 ▼25.47 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_sg_jquery_scroller_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for jQuery Vertical Scroller
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲119 | 13.41 ▼0.79 | 8.94 ▲7.06 | 41.87 ▼2.71 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▲0.04 | 84.29 ▼9.96 | 39.59 ▼5.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.03 | 37.77 ▼0.53 | 32.19 ▼5.38 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.20 ▼4.74 | 602.16 ▼27.77 | 68.65 ▲16.22 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.10 ▼0.18 | 103.19 ▲6.46 | 44.54 ▲4.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/jquery-vertical-scroller/sg-jqvs-widget-plugin.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; sg_jquery_scroller_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_sg_jquery_scroller_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jquery-vertical-scroller/sg-jqvs-widget-plugin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (15 tag instead of maximum 10)
jquery-vertical-scroller/sg-jqvs-widget-plugin.php 92% from 13 tests
Analyzing the main PHP file in "jQuery Vertical Scroller" version 2.9.2
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("jquery-vertical-scroller.php" instead of "sg-jqvs-widget-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected621 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 26 | 412 |
PO File | 3 | 66 | 66 | 184 |
CSS | 1 | 5 | 21 | 24 |
JavaScript | 1 | 6 | 20 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 5.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.28MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 7.89KB | 3.97KB | ▼ 49.72% |
assets/screenshot-2.png | 15.39KB | 7.33KB | ▼ 52.37% |
assets/screenshot-1.png | 13.27KB | 6.67KB | ▼ 49.78% |
assets/screenshot-3.png | 10.02KB | 4.68KB | ▼ 53.25% |
assets/banner-772x250.png | 240.96KB | 109.40KB | ▼ 54.60% |