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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.79ms] Passed 4 tests
An overview of server-side resources used by ThemesZone WooCommerce Ajax Quantity
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.48 ▼5.21 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.91 ▼3.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.76 ▼1.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.41 ▼13.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.95 ▲1.22 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by ThemesZone WooCommerce Ajax Quantity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.22 | 2.00 ▲0.38 | 43.25 ▼4.31 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.04 | 87.42 ▼0.47 | 39.04 ▼5.29 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.05 | 36.05 ▼0.68 | 36.61 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,525 ▼6 | 22.99 ▲0.26 | 627.96 ▼45.39 | 54.12 ▼3.91 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.21 ▼0.07 | 102.44 ▲8.89 | 45.04 ▲4.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/themeszone-woocommerce-ajax-quantity/admin/partials/tz-wc-ajax-qty-admin-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_stock_amount() in wp-content/plugins/themeszone-woocommerce-ajax-quantity/templates/qty-form.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
3 plugin tags: ajax, quantity, woocommerce
themeszone-woocommerce-ajax-quantity/themeszone-wc-ajax-qty.php 77% from 13 tests
"ThemesZone WooCommerce Ajax Quantity" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("themeszone-woocommerce-ajax-quantity.php" instead of "themeszone-wc-ajax-qty.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 223 characters long)
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 detected601 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 180 | 520 | 358 |
JavaScript | 2 | 52 | 34 | 129 |
Markdown | 1 | 17 | 0 | 43 |
PO File | 1 | 8 | 8 | 40 |
CSS | 2 | 5 | 4 | 31 |
PHP code Passed 2 tests
This is a very shot review 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.31 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 30 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin