Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.08ms] Passed 4 tests
Analyzing server-side resources used by VariationPress for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.65 ▼4.00 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.32 ▼10.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.43 ▼8.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.72 ▼21.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.27 ▲0.15 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by VariationPress for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.27 ▼1.31 | 1.63 ▼0.72 | 44.81 ▼28.47 |
Dashboard /wp-admin | 2,222 ▲48 | 4.85 ▼0.96 | 116.44 ▼10.11 | 46.13 ▼1.75 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.97 ▼0.01 | 36.15 ▼6.22 | 38.53 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,549 ▲28 | 23.32 ▲0.23 | 683.57 ▼17.36 | 51.66 ▼7.39 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.21 ▲0.06 | 109.80 ▼5.55 | 47.31 ▼10.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant SAVP_FILE - assumed 'SAVP_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/variationpress/includes/class-settings.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/variationpress/includes/class-product-meta.php:12
- > PHP Warning
Use of undefined constant SAVP_FILE - assumed 'SAVP_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/variationpress/includes/class-settings.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/variationpress/includes/class-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/variationpress/includes/class-variation-metabox.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/variationpress/includes/class-admin-product.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Screenshot #1 (Variations on frontend) image missing
variationpress/variationpress.php 85% from 13 tests
This is the main PHP file of "VariationPress for WooCommerce" version 1.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 detected22,408 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 3,595 | 910 | 15,985 |
PHP | 13 | 511 | 338 | 2,430 |
CSS | 13 | 345 | 166 | 2,129 |
Sass | 3 | 78 | 5 | 1,054 |
HTML | 1 | 11 | 0 | 338 |
JSON | 1 | 0 | 0 | 190 |
LESS | 1 | 11 | 5 | 152 |
SVG | 5 | 37 | 2 | 122 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 34.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 85 | |
▷ Static methods | 8 | 9.41% |
▷ Public methods | 82 | 96.47% |
▷ Protected methods | 3 | 3.53% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/photoswipe/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |