Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼5.76ms] Passed 4 tests
This is a short check of server-side resources used by YayExtra - WooCommerce Extra Product Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.25 ▼4.33 |
Dashboard /wp-admin | 3.50 ▲0.16 | 47.95 ▼11.41 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 45.63 ▼1.39 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 85.24 ▼5.89 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.78 ▲0.43 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 3.40 | 33.70 |
Licenses /wp-admin/admin.php?page=yaycommerce-licenses | 3.43 | 32.94 |
Help /wp-admin/admin.php?page=yaycommerce-help | 3.23 | 24.81 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for YayExtra - WooCommerce Extra Product Options
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲101 | 14.14 ▼0.21 | 1.66 ▼0.05 | 42.35 ▼3.63 |
Dashboard /wp-admin | 2,250 ▲72 | 5.65 ▼0.04 | 94.79 ▼16.19 | 42.87 ▼0.52 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.01 ▼0.01 | 41.43 ▲6.83 | 36.63 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 22.95 ▼0.33 | 582.14 ▼191.74 | 56.22 ▼7.98 |
Media Library /wp-admin/upload.php | 1,458 ▲64 | 4.30 ▲0.06 | 107.27 ▼1.42 | 48.61 ▲3.51 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 1,130 | 2.35 | 33.58 | 31.58 |
Licenses /wp-admin/admin.php?page=yaycommerce-licenses | 1,127 | 2.03 | 23.85 | 33.55 |
Help /wp-admin/admin.php?page=yaycommerce-help | 28 | 0.41 | 0.07 | 3.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: recommendedPlugins in wp-content/plugins/yayextra/includes/YayCommerceMenu/views/other-plugins-content.php on line 22
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=yaycommerce-help
- > Network (severe)
wp-admin/admin.php?page=yaycommerce-help - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce product fields, extra product options, woocommerce product options, product customizer, product addons
yayextra/yayextra.php 92% from 13 tests
"YayExtra - WooCommerce Extra Product Options" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 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
There were no executable files found in this plugin10,502 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 755 | 1,054 | 5,565 |
CSS | 3 | 320 | 75 | 3,289 |
JavaScript | 6 | 189 | 162 | 1,645 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 96.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 585.00 |
Average method complexity | 7.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 61 | 39.87% |
▷ Public methods | 143 | 93.46% |
▷ Protected methods | 1 | 0.65% |
▷ Private methods | 9 | 5.88% |
Functions | 10 | |
▷ Named functions | 3 | 30.00% |
▷ Anonymous functions | 7 | 70.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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