Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.59ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Fixed Quantity
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.96 ▼6.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.04 ▲0.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.24 ▲3.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.97 ▼18.57 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.30 ▲2.82 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Fixed Quantity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.05 | 1.65 ▼0.20 | 40.48 ▼1.11 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲0.98 | 96.36 ▼6.86 | 37.73 ▼5.88 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.05 | 39.59 ▲2.41 | 36.35 ▲4.64 |
Add New Post /wp-admin/post-new.php | 1,533 ▲16 | 23.48 ▲5.84 | 682.76 ▲51.25 | 54.11 ▲5.69 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.18 ▼0.05 | 92.34 ▼9.86 | 43.53 ▲0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woocommerce-fixed-quantity/views/html-admin-meta-box.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-fixed-quantity/views/html-admin-meta-box-content.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: fixed quantity, fixed price, woocomerce, ecommerce
woocommerce-fixed-quantity/woocommerce-fixed-quantity.php 92% from 13 tests
The primary PHP file in "WooCommerce Fixed Quantity" version 1.2.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 detected4,693 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 404 | 399 | 4,017 |
JavaScript | 4 | 69 | 23 | 410 |
JSON | 3 | 0 | 0 | 118 |
PO File | 1 | 39 | 41 | 103 |
CSS | 1 | 8 | 0 | 36 |
Markdown | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 37.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 104 | |
▷ Static methods | 50 | 48.08% |
▷ Public methods | 95 | 91.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 8.65% |
Functions | 44 | |
▷ Named functions | 40 | 90.91% |
▷ Anonymous functions | 4 | 9.09% |
Constants | 23 | |
▷ Global constants | 22 | 95.65% |
▷ Class constants | 1 | 4.35% |
▷ 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
No PNG files were detected