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.28MB] [CPU: ▼2.93ms] Passed 4 tests
Analyzing server-side resources used by AZ Product Slider For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 41.46 ▲0.18 |
Dashboard /wp-admin | 3.68 ▲0.37 | 51.77 ▲2.71 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 54.96 ▲6.42 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 84.05 ▼20.13 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 40.38 ▲5.51 |
AZ Product Options /wp-admin/admin.php?page=azpswc_options | 3.51 | 36.78 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
azpswc_settings_styling |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AZ Product Slider For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲324 | 15.26 ▲0.83 | 5.71 ▲4.11 | 40.35 ▲1.39 |
Dashboard /wp-admin | 2,383 ▲209 | 6.60 ▲1.72 | 138.81 ▲32.19 | 41.38 ▼1.90 |
Posts /wp-admin/edit.php | 2,291 ▲202 | 3.65 ▲1.67 | 53.38 ▲11.58 | 30.81 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.43 ▲0.28 | 652.78 ▲14.55 | 36.28 ▼20.35 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.41 ▲0.14 | 85.36 ▼20.49 | 43.68 ▼1.49 |
AZ Product Options /wp-admin/admin.php?page=azpswc_options | 3,608 | 4.48 | 161.43 | 31.16 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- azpswc_settings_styling
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'AZPSWC_Settings_API' not found in wp-content/plugins/az-product-slider-for-woocommerce/admin/plugin-options.php:12
- > 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 90% from 29 tests
readme.txt Passed 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
4 plugin tags: featured product, woocommerce, product carousel, product slider
az-product-slider-for-woocommerce/plugin-main.php 77% from 13 tests
The main file in "AZ Product Slider For WooCommerce" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("az-product-slider-for-woocommerce.php" instead of "plugin-main.php")
- Description: The description should be shorter than 140 characters (currently 215 characters long)
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
Everything looks great! No dangerous files found in this plugin6,335 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 4 | 4,663 |
PHP | 5 | 192 | 235 | 1,229 |
CSS | 6 | 8 | 17 | 366 |
JavaScript | 2 | 1 | 4 | 77 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.40 |
▷ 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 | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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