Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲5.37MB] [CPU: ▲34.36ms] 75% from 4 tests
Server-side resources used by Staggs - Product configurator for WooCommerce
The following require your attention
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.37MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.50 ▲7.04 | 115.57 ▲78.73 |
Dashboard /wp-admin | 8.87 ▲5.53 | 80.25 ▲24.93 |
Posts /wp-admin/edit.php | 8.87 ▲5.52 | 76.82 ▲34.19 |
Add New Post /wp-admin/post-new.php | 10.66 ▲4.77 | 133.32 ▲36.92 |
Media Library /wp-admin/upload.php | 8.87 ▲5.64 | 75.98 ▲41.41 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.87 | 66.02 |
Server storage [IO: ▲14.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 838 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
fs_debug_mode |
can_compress_scripts |
widget_theysaidso_widget |
fs_active_plugins |
widget_recent-comments |
db_upgraded |
staggs_check_builder_type |
widget_recent-posts |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for Staggs - Product configurator for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.38 ▼0.24 | 1.73 ▲0.10 | 32.94 ▼9.68 |
Dashboard /wp-admin | 2,240 ▲65 | 5.59 ▼0.06 | 83.09 ▼14.05 | 39.87 ▲0.02 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.05 ▲0.08 | 35.43 ▲0.25 | 34.43 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 22.46 ▼0.59 | 635.74 ▼58.48 | 41.19 ▼13.13 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.27 ▼0.06 | 97.88 ▼2.45 | 42.37 ▼0.62 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,116 | 2.09 | 23.46 | 27.50 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/staggs/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- fs_accounts
- fs_active_plugins
- widget_recent-comments
- staggs_check_builder_type
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- fs_debug_mode
- can_compress_scripts
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 129× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/core/Datastore/Term_Meta_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/core/Container/Condition/Blog_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/core/Container/Condition/Boolean_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/core/Container/Broken_Container.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/staggs/public/staggs-template-hooks.php:17
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Format_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/core/Field/Textarea_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/staggs/vendor/htmlburger/carbon-fields/core/Walker/Nav_Menu_Item_Edit_Walker.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 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
5 plugin tags: product customizer, product configurator, product addons, 3d configurator, ar viewer
staggs/staggs.php Passed 13 tests
The entry point to "Staggs - Product configurator for WooCommerce" version 1.5.5 is a PHP file that has certain tags in its header comment area
131 characters long description:
Everything you need to build stunning product configurators in WordPress and WooCommerce. Boost sales and increase user engagement.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected87,690 lines of code in 685 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 343 | 12,704 | 27,865 | 59,589 |
JavaScript | 185 | 7,946 | 11,218 | 20,100 |
CSS | 28 | 311 | 1,179 | 3,115 |
PO File | 28 | 898 | 1,111 | 2,411 |
Sass | 49 | 365 | 3 | 1,868 |
JSON | 4 | 0 | 0 | 374 |
SVG | 44 | 0 | 0 | 149 |
Markdown | 3 | 24 | 0 | 68 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing 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 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 30.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 13 | 6.44% |
▷ Concrete classes | 189 | 93.56% |
▷ Final classes | 2 | 1.06% |
Methods | 2,376 | |
▷ Static methods | 350 | 14.73% |
▷ Public methods | 1,798 | 75.67% |
▷ Protected methods | 182 | 7.66% |
▷ Private methods | 396 | 16.67% |
Functions | 293 | |
▷ Named functions | 211 | 72.01% |
▷ Anonymous functions | 82 | 27.99% |
Constants | 181 | |
▷ Global constants | 109 | 60.22% |
▷ Class constants | 72 | 39.78% |
▷ Public constants | 72 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
49 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/arrow-bottom-left.png | 1.68KB | 0.41KB | ▼ 75.77% |
public/css/images/ui-icons_555555_256x240.png | 6.96KB | 4.18KB | ▼ 39.91% |
admin/img/staggs-acf.png | 11.86KB | 4.30KB | ▼ 63.75% |
admin/img/steps.png | 1.11KB | 0.18KB | ▼ 84.09% |
admin/img/1.png | 0.52KB | 0.31KB | ▼ 41.28% |