Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.71ms] Passed 4 tests
Analyzing server-side resources used by RHX Woocommerce Product Carousel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 48.60 ▲7.66 |
Dashboard /wp-admin | 3.32 ▼0.02 | 52.16 ▼7.92 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.50 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.01 ▼11.40 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.55 ▲0.66 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
rhx_woo_version |
widget_theysaidso_widget |
widget_recent-posts |
rhx_woo_installed |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
RHX Woocommerce Product Carousel: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.35 ▲0.24 | 1.69 ▼0.03 | 44.03 ▲0.09 |
Dashboard /wp-admin | 2,211 ▲34 | 5.67 ▲0.02 | 88.90 ▲0.00 | 39.75 ▼0.08 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▼0.00 | 34.48 ▼1.72 | 34.91 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.36 ▼0.28 | 674.43 ▲39.36 | 54.44 ▼4.49 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.20 ▲0.05 | 107.84 ▲2.73 | 44.41 ▲1.20 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- rhx_woo_version
- widget_recent-comments
- db_upgraded
- rhx_woo_installed
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rhx-woo-product-carousel/includes/Dynamic-style.php:69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Product Carousel Settings), #2 (Back End), #3 (Front End)
rhx-woo-product-carousel/rhx-woo-carousel.php 77% from 13 tests
"RHX Woocommerce Product Carousel" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 241 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("rhx-woo-product-carousel.php" instead of "rhx-woo-carousel.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
No dangerous file extensions were detected575 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 92 | 135 | 376 |
CSS | 4 | 15 | 23 | 152 |
JavaScript | 3 | 11 | 15 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 19 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ 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
There were not PNG files found in your plugin