Benchmarks
Plugin footprint 58% 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
These installer errors require your attention
- This plugin did not install gracefully
- > User error in wp-content/plugins/glasses-for-woocommerce/src/Schema.php+34
Please enable WooCommerce Plugin before using Glasses for WooCommerce.
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.91ms] Passed 4 tests
A check of server-side resources used by ChatGPT Open AI Images & Content for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.38 ▲0.91 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.31 ▼12.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.97 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.48 ▼7.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.09 ▲0.60 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 193 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ChatGPT Open AI Images & Content for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲39 | 14.37 ▼0.25 | 1.85 ▲0.16 | 46.00 ▼5.31 |
Dashboard /wp-admin | 2,195 ▲18 | 5.58 ▼0.07 | 83.19 ▼7.54 | 39.39 ▼0.26 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.04 ▲0.01 | 36.22 ▲0.66 | 34.21 ▼7.78 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 18.25 ▼4.79 | 648.31 ▼13.39 | 62.20 ▲8.89 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▲0.01 | 93.93 ▼1.16 | 43.55 ▲0.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/data/convert-colors.php
- 119× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
include(): Failed opening '../../vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/tests/pragmatic/schemes.php on line 17
- > PHP Fatal error
Uncaught Error: Interface 'Phim\\Color\\LabColorInterface' not found in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/src/Phim/Color/LabColor.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Phim\\Shape\\GeometricShapeInterface' not found in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/src/Phim/Shape/GeometricShapeBase.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Phim\\Brush\\ColoredBrushInterface' not found in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/src/Phim/Brush/StrokeBrushInterface.php:5
- > PHP Fatal error
Uncaught Error: Class 'Phim\\Color\\HslColor' not found in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/tests/pragmatic/color-spaces.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Phim\\FormatInterface' not found in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/src/Phim/Format/SvgFormat.php:7
- > PHP Warning
include(../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/tests/pragmatic/palettes.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Phim\\Color\\HsColorBase' not found in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/src/Phim/Color/HsvColor.php:7
- > PHP Fatal error
Uncaught Error: Class 'Phim\\Color\\HsColorBase' not found in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/src/Phim/Color/HslColor.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Phim\\TransformationInterface' not found in wp-content/plugins/glasses-for-woocommerce/vendor/talesoft/phim/src/Phim/Transformation.php:16
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Requires php: Invalid plugin version format
glasses-for-woocommerce/glasses-for-woocommerce.php Passed 13 tests
The entry point to "ChatGPT Open AI Images & Content for WooCommerce" version 2.2.0 is a PHP file that has certain tags in its header comment area
118 characters long description:
AI assisted store creation. Ever wanted a robot to open an e-commerce shop for you? This is what that would look like.
Code Analysis Passed 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 detected8,622 lines of code in 184 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 170 | 2,097 | 1,693 | 7,425 |
Markdown | 6 | 223 | 0 | 516 |
CSS | 1 | 66 | 0 | 399 |
JSON | 4 | 0 | 0 | 227 |
JavaScript | 1 | 3 | 0 | 35 |
YAML | 1 | 6 | 0 | 12 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 42 | |
Traits | 32 | |
Classes | 75 | |
▷ Abstract classes | 4 | 5.33% |
▷ Concrete classes | 71 | 94.67% |
▷ Final classes | 0 | 0.00% |
Methods | 634 | |
▷ Static methods | 104 | 16.40% |
▷ Public methods | 603 | 95.11% |
▷ Protected methods | 14 | 2.21% |
▷ Private methods | 17 | 2.68% |
Functions | 74 | |
▷ Named functions | 49 | 66.22% |
▷ Anonymous functions | 25 | 33.78% |
Constants | 602 | |
▷ Global constants | 1 | 0.17% |
▷ Class constants | 601 | 99.83% |
▷ Public constants | 597 | 99.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin