Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > User error in wp-content/plugins/simple-product-badges/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
Server metrics [RAM: ▼1.92MB] [CPU: ▼51.83ms] Passed 4 tests
An overview of server-side resources used by Simple Product Badges
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.31 ▼38.99 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.09 ▼44.11 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.75 ▼42.20 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.58 ▼82.00 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 6.42 ▼26.69 |
Server storage [IO: ▲15.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 2,225 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Product Badges
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,019 ▲262 | 18.86 ▲4.11 | 1.97 ▼0.11 | 38.57 ▼6.94 |
Dashboard /wp-admin | 2,402 ▲214 | 9.31 ▲4.45 | 201.07 ▲79.87 | 38.04 ▼9.43 |
Posts /wp-admin/edit.php | 2,317 ▲228 | 6.25 ▲4.25 | 88.16 ▲50.53 | 30.40 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,593 ▲58 | 20.13 ▼3.16 | 700.90 ▲14.79 | 37.62 ▼18.34 |
Media Library /wp-admin/upload.php | 1,469 ▲87 | 6.64 ▲2.43 | 109.74 ▲9.98 | 41.16 ▼4.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > User error in wp-content/plugins/simple-product-badges/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-product-badges/simple-product-badges.php
- > /wp-content/plugins/simple-product-badges/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 415× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/simple-product-badges/vendor/htmlburger/carbon-fields/core/Container/Nav_Menu_Item_Container.php:12
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Inflector\\GenericLanguageInflectorFactory' not found in wp-content/plugins/simple-product-badges/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/French/InflectorFactory.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/simple-product-badges/vendor/symfony/translation/Translator.php:34
- > PHP Fatal error
Trait 'Illuminate\\Support\\Traits\\Macroable' not found in wp-content/plugins/simple-product-badges/vendor/illuminate/collections/Arr.php on line 9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-product-badges/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/simple-product-badges/vendor/symfony/translation/Exception/LogicException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\Doctrine\\DateTimeType' not found in wp-content/plugins/simple-product-badges/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonType.php:16
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/simple-product-badges/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Level_Condition.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Dumper\\DumperInterface' not found in wp-content/plugins/simple-product-badges/vendor/symfony/translation/Dumper/FileDumper.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\BadMethodCallException' not found in wp-content/plugins/simple-product-badges/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownMethodException.php:17
- > 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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: simple, custom, woocomerce, badges, products
simple-product-badges/simple-product-badges.php Passed 13 tests
The main PHP file in "Simple Product Badges" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Create simple customized badges for your store products in WooCommerce.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/simple-product-badges/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,592 | 15,463 | 51,320 | 70,153 |
JavaScript | 180 | 7,101 | 10,930 | 16,320 |
JSON | 31 | 0 | 0 | 3,094 |
XSD | 3 | 91 | 48 | 2,842 |
PO File | 28 | 898 | 1,111 | 2,411 |
CSS | 9 | 240 | 1,157 | 2,255 |
Sass | 53 | 377 | 4 | 1,940 |
Markdown | 28 | 519 | 1 | 1,314 |
reStructuredText | 1 | 74 | 78 | 74 |
TypeScript | 1 | 4 | 1 | 26 |
DOS Batch | 1 | 0 | 0 | 4 |
YAML | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 125 | |
Interfaces | 154 | |
Traits | 64 | |
Classes | 508 | |
▷ Abstract classes | 36 | 7.09% |
▷ Concrete classes | 472 | 92.91% |
▷ Final classes | 46 | 9.75% |
Methods | 5,254 | |
▷ Static methods | 795 | 15.13% |
▷ Public methods | 4,390 | 83.56% |
▷ Protected methods | 712 | 13.55% |
▷ Private methods | 152 | 2.89% |
Functions | 775 | |
▷ Named functions | 166 | 21.42% |
▷ Anonymous functions | 609 | 78.58% |
Constants | 240 | |
▷ Global constants | 18 | 7.50% |
▷ Class constants | 222 | 92.50% |
▷ Public constants | 216 | 97.30% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected