Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.01MB] [CPU: ▲22.13ms] 75% from 4 tests
This is a short check of server-side resources used by Custom Product Builder - Designer and Order Customized
Please fix the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.01MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.92 ▲5.46 | 78.06 ▲34.41 |
Dashboard /wp-admin | 8.94 ▲5.64 | 77.68 ▲17.18 |
Posts /wp-admin/edit.php | 8.94 ▲5.58 | 82.35 ▲24.96 |
Add New Post /wp-admin/post-new.php | 9.24 ▲3.35 | 114.82 ▲11.95 |
Media Library /wp-admin/upload.php | 8.94 ▲5.71 | 75.20 ▲35.36 |
Custom Product Builder For WooCommerce /wp-admin/admin.php?page=custom-product-builder-for-woocommerce | 8.94 | 72.59 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.94 | 77.05 |
Server storage [IO: ▲3.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 203 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
fs_debug_mode |
widget_recent-posts |
fs_accounts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Product Builder - Designer and Order Customized
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.38 ▼0.18 | 1.83 ▼0.16 | 33.55 ▼5.63 |
Dashboard /wp-admin | 2,219 ▲42 | 5.65 ▼0.02 | 95.17 ▼5.67 | 47.26 ▲1.14 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.12 ▲0.12 | 45.49 ▲1.05 | 38.50 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 21.93 ▼1.72 | 688.11 ▲26.23 | 51.16 ▼7.26 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.12 ▼0.13 | 104.58 ▼8.22 | 47.86 ▲3.88 |
Custom Product Builder For WooCommerce /wp-admin/admin.php?page=custom-product-builder-for-woocommerce | 959 | 1.86 | 28.80 | 73.78 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,072 | 1.66 | 29.49 | 31.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/custom-product-builder-for-woocommerce/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- fs_active_plugins
- fs_debug_mode
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- fs_accounts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function CustomProductBuilderWC\\add_action() in wp-content/plugins/custom-product-builder-for-woocommerce/includes/class-product.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function CustomProductBuilderWC\\add_filter() in wp-content/plugins/custom-product-builder-for-woocommerce/includes/class-order.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function CustomProductBuilderWC\\add_action() in wp-content/plugins/custom-product-builder-for-woocommerce/includes/class-admin.php:40
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in custom-product-builder-for-woocommerce/assets to your readme.txt
custom-product-builder-for-woocommerce/custom-product-builder-for-wc.php 92% from 13 tests
Analyzing the main PHP file in "Custom Product Builder - Designer and Order Customized" version 1.0.5
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-product-builder-for-woocommerce.php" instead of "custom-product-builder-for-wc.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin34,682 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 8,175 | 17,580 | 34,100 |
Markdown | 2 | 89 | 0 | 268 |
JavaScript | 7 | 34 | 69 | 198 |
SVG | 3 | 2 | 2 | 74 |
JSON | 1 | 0 | 0 | 27 |
CSS | 15 | 0 | 0 | 15 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 83.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 5 | 9.62% |
Methods | 1,296 | |
▷ Static methods | 205 | 15.82% |
▷ Public methods | 907 | 69.98% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 372 | 28.70% |
Functions | 109 | |
▷ Named functions | 109 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/custom-product-builder-for-woocommerce.png | 3.15KB | 2.85KB | ▼ 9.48% |