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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.32ms] Passed 4 tests
An overview of server-side resources used by Featured Products Vertical Scroller
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.50 ▲3.24 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.35 ▼5.82 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.95 ▼11.27 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.68 ▼19.52 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.84 ▼0.66 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_wcfps |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Featured Products Vertical Scroller
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.25 ▼1.13 | 1.85 ▲0.05 | 42.46 ▲0.63 |
Dashboard /wp-admin | 2,209 ▲24 | 5.86 ▲0.96 | 106.46 ▲3.77 | 43.60 ▲2.01 |
Posts /wp-admin/edit.php | 2,068 ▼21 | 2.02 ▼0.03 | 39.11 ▲1.25 | 35.74 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.70 ▼5.50 | 676.40 ▲13.36 | 52.09 ▲2.11 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.02 | 97.13 ▼10.64 | 43.47 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_wcfps
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/featured-products-vertical-scroller/wc-featured-products-scroller.php:89
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce, scroller, carousel, featured products
featured-products-vertical-scroller/wc-featured-products-scroller.php 85% from 13 tests
The main PHP file in "Featured Products Vertical Scroller" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("featured-products-vertical-scroller.php" instead of "wc-featured-products-scroller.php")
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
Success! There were no dangerous files found in this plugin2,980 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 847 | 45 | 2,113 |
CSS | 2 | 44 | 5 | 274 |
Sass | 2 | 27 | 5 | 262 |
PHP | 1 | 32 | 30 | 158 |
LESS | 1 | 11 | 5 | 152 |
SVG | 1 | 1 | 0 | 13 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Named functions | 4 | 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
There were not PNG files found in your plugin