Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲4.74MB] [CPU: ▲18.10ms] Passed 4 tests
This is a short check of server-side resources used by Custom WooCommerce Checkout Fields Editor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.62 ▲5.16 | 59.26 ▲17.76 |
Dashboard /wp-admin | 8.64 ▲5.34 | 69.80 ▲19.67 |
Posts /wp-admin/edit.php | 8.64 ▲5.29 | 74.88 ▲30.58 |
Add New Post /wp-admin/post-new.php | 9.06 ▲3.18 | 101.29 ▲4.39 |
Media Library /wp-admin/upload.php | 8.64 ▲5.42 | 62.44 ▲31.06 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.64 | 51.91 |
Server storage [IO: ▲3.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
fs_gdpr |
fs_active_plugins |
fs_debug_mode |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
fs_accounts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom WooCommerce Checkout Fields Editor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.31 ▼0.99 | 4.59 ▲2.86 | 32.45 ▼16.86 |
Dashboard /wp-admin | 2,230 ▲42 | 4.90 ▲0.02 | 112.96 ▲12.21 | 44.76 ▲5.47 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 2.00 ▼0.01 | 41.18 ▼13.41 | 39.56 ▲2.68 |
Add New Post /wp-admin/post-new.php | 1,522 ▼6 | 23.17 ▲5.03 | 667.80 ▲69.39 | 53.37 ▲0.19 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.23 ▼0.10 | 99.46 ▲2.25 | 44.31 ▲2.49 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,056 | 1.69 | 25.99 | 28.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/add-fields-to-checkout-page-woocommerce/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- can_compress_scripts
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- fs_active_plugins
- db_upgraded
- fs_gdpr
- widget_recent-posts
- fs_accounts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Dashboard page for settings), #2 (Dashboard page for add new custom field), #3 (Thats how on front end your fields will look.)
add-fields-to-checkout-page-woocommerce/checkout-form-editor.php 77% from 13 tests
This is the main PHP file of "Custom WooCommerce Checkout Fields Editor" version 1.2.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "3.0.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("add-fields-to-checkout-page-woocommerce.php" instead of "checkout-form-editor.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected37,076 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 7,689 | 16,563 | 32,709 |
CSS | 16 | 136 | 53 | 2,166 |
JavaScript | 7 | 421 | 113 | 1,607 |
PO File | 3 | 132 | 210 | 353 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 92.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,172 | |
▷ Static methods | 174 | 14.85% |
▷ Public methods | 831 | 70.90% |
▷ Protected methods | 15 | 1.28% |
▷ Private methods | 326 | 27.82% |
Functions | 126 | |
▷ Named functions | 126 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 100.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
16 PNG files occupy 0.33MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
assets/css/ui-bg_glass_75_e6e6e6_1x400.png | 0.29KB | 0.15KB | ▼ 49.83% |
assets/css/ui-bg_flat_75_ffffff_40x100.png | 0.24KB | 0.08KB | ▼ 64.78% |
screenshot-2.png | 111.70KB | 44.38KB | ▼ 60.27% |
screenshot-1.png | 98.37KB | 38.67KB | ▼ 60.69% |