Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > User error in wp-content/plugins/simple-product-milestones/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.93MB] [CPU: ▼54.97ms] Passed 4 tests
An overview of server-side resources used by Simple Product Milestones
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.79 ▼31.83 |
Dashboard /wp-admin | 2.08 ▼1.26 | 6.24 ▼51.78 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.05 ▼43.35 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.84 ▼92.91 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.80 ▼28.13 |
Server storage [IO: ▲5.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 1,760 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Product Milestones
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.37 ▼1.39 | 1.82 ▲0.25 | 49.71 ▲7.17 |
Dashboard /wp-admin | 2,211 ▲23 | 5.91 ▲0.03 | 96.91 ▼4.91 | 77.28 ▲35.31 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.03 | 35.62 ▼5.92 | 30.62 ▼5.94 |
Add New Post /wp-admin/post-new.php | 1,392 ▼141 | 18.37 ▼4.85 | 635.89 ▲41.53 | 63.42 ▲17.12 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.04 | 95.03 ▼6.99 | 42.17 ▼2.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > User error in wp-content/plugins/simple-product-milestones/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.
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/simple-product-milestones/simple-product-milestones.php
- 298× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface' not found in wp-content/plugins/simple-product-milestones/vendor/symfony/translation/Formatter/MessageFormatter.php:23
- > PHP Fatal error
Uncaught ReflectionException: Class Symfony\\Component\\Translation\\Translator does not exist in wp-content/plugins/simple-product-milestones/vendor/nesbot/carbon/src/Carbon/Translator.php:22
- > PHP Fatal error
Uncaught Error: Class 'CPF\\Field\\Field' not found in wp-content/plugins/simple-product-milestones/vendor/joanrodas/custom-product-fields/CPF/Field/TimeField.php:5
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/simple-product-milestones/vendor/symfony/translation/Loader/CsvFileLoader.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\BadMethodCallException' not found in wp-content/plugins/simple-product-milestones/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownSetterException.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/simple-product-milestones/vendor/symfony/translation/Loader/IniFileLoader.php:19
- > PHP Fatal error
Uncaught Error: Class 'CPF\\Field\\Field' not found in wp-content/plugins/simple-product-milestones/vendor/joanrodas/custom-product-fields/CPF/Field/RangeField.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/simple-product-milestones/vendor/illuminate/contracts/Support/MessageBag.php:7
- > PHP Fatal error
Uncaught Error: Class 'CPF\\Field\\Field' not found in wp-content/plugins/simple-product-milestones/vendor/joanrodas/custom-product-fields/CPF/Field/FileField.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Bus\\QueueingDispatcher' not found in wp-content/plugins/simple-product-milestones/vendor/illuminate/bus/Dispatcher.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocomerce, products, milestones, custom, simple
simple-product-milestones/simple-product-milestones.php Passed 13 tests
The main file in "Simple Product Milestones" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Create and customize milestones for your WooCommerce products.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/simple-product-milestones/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,447 | 12,989 | 44,654 | 61,017 |
XSD | 3 | 91 | 48 | 2,842 |
JSON | 29 | 0 | 0 | 2,731 |
CSS | 2 | 134 | 112 | 1,952 |
Markdown | 25 | 495 | 1 | 1,246 |
JavaScript | 4 | 1 | 0 | 112 |
Sass | 4 | 18 | 1 | 100 |
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 short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 103 | |
Interfaces | 149 | |
Traits | 64 | |
Classes | 383 | |
▷ Abstract classes | 25 | 6.53% |
▷ Concrete classes | 358 | 93.47% |
▷ Final classes | 44 | 12.29% |
Methods | 4,355 | |
▷ Static methods | 708 | 16.26% |
▷ Public methods | 3,659 | 84.02% |
▷ Protected methods | 547 | 12.56% |
▷ Private methods | 149 | 3.42% |
Functions | 670 | |
▷ Named functions | 144 | 21.49% |
▷ Anonymous functions | 526 | 78.51% |
Constants | 210 | |
▷ Global constants | 13 | 6.19% |
▷ Class constants | 197 | 93.81% |
▷ Public constants | 191 | 96.95% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin