Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.98ms] Passed 4 tests
This is a short check of server-side resources used by WPC Product Options for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.84 ▼2.04 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.46 ▼1.84 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.80 ▼0.05 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.13 ▼11.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.46 ▲5.13 |
About /wp-admin/admin.php?page=wpclever | 3.21 | 30.43 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.21 | 37.90 |
Server storage [IO: ▲0.34MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WPC Product Options for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲105 | 14.22 ▼0.49 | 1.67 ▼0.09 | 37.12 ▼3.92 |
Dashboard /wp-admin | 2,272 ▲95 | 5.54 ▲0.02 | 92.76 ▼7.01 | 71.97 ▲28.54 |
Posts /wp-admin/edit.php | 2,181 ▲78 | 2.00 ▲0.06 | 37.84 ▼6.88 | 34.49 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,605 ▲79 | 24.98 ▲1.43 | 728.19 ▲102.81 | 50.25 ▼3.89 |
Media Library /wp-admin/upload.php | 1,474 ▲71 | 4.13 ▼0.07 | 102.82 ▲4.58 | 71.35 ▲30.81 |
About /wp-admin/admin.php?page=wpclever | 1,402 | 2.23 | 31.38 | 35.43 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,735 | 2.13 | 34.95 | 69.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpc-product-options/wpc-product-options.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Please describe screenshot #1 in wpc-product-options/assets to your readme.txt
wpc-product-options/wpc-product-options.php 92% from 13 tests
This is the main PHP file of "WPC Product Options for WooCommerce" version 1.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 216 characters long)
Code Analysis Passed 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 plugin7,598 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 484 | 101 | 2,764 |
PHP | 48 | 359 | 200 | 2,381 |
CSS | 6 | 422 | 160 | 2,011 |
Sass | 2 | 75 | 1 | 413 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 29.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 13 | 15.66% |
▷ Public methods | 71 | 85.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 14.46% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 12 | |
▷ Global constants | 10 | 83.33% |
▷ Class constants | 2 | 16.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected