Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.04ms] Passed 4 tests
This is a short check of server-side resources used by Product Input Fields for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.90 ▲4.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.58 ▼2.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.71 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.31 ▼6.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.34 ▲3.62 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 158 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Product Input Fields for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.18 ▼0.34 | 1.82 ▲0.17 | 43.15 ▼4.00 |
Dashboard /wp-admin | 2,192 ▲12 | 5.54 ▼0.06 | 86.37 ▼3.79 | 42.36 ▼0.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.02 | 34.45 ▼5.02 | 32.54 ▼6.62 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 17.87 ▼5.12 | 631.71 ▼32.50 | 70.11 ▲13.77 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.08 | 110.76 ▲7.35 | 47.24 ▼0.78 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 106× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/product-input-fields-for-woocommerce/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: product addons, fields, woocommerce product fields, product input fields, custom fields
product-input-fields-for-woocommerce/product-input-fields-for-woocommerce.php Passed 13 tests
"Product Input Fields for WooCommerce" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Add custom frontend input fields to WooCommerce products.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin7,351 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 847 | 1,866 | 5,982 |
PO File | 1 | 171 | 186 | 406 |
JavaScript | 8 | 60 | 52 | 363 |
Markdown | 3 | 53 | 0 | 278 |
JSON | 3 | 0 | 0 | 263 |
XML | 2 | 4 | 0 | 31 |
YAML | 2 | 7 | 0 | 27 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 2 | 1.63% |
▷ Concrete classes | 121 | 98.37% |
▷ Final classes | 1 | 0.83% |
Methods | 262 | |
▷ Static methods | 19 | 7.25% |
▷ Public methods | 219 | 83.59% |
▷ Protected methods | 36 | 13.74% |
▷ Private methods | 7 | 2.67% |
Functions | 18 | |
▷ Named functions | 12 | 66.67% |
▷ Anonymous functions | 6 | 33.33% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin