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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.75ms] Passed 4 tests
An overview of server-side resources used by C4D Woo Variation Images
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.82 ▼1.50 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.77 ▼8.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.93 ▼4.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.24 ▼8.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.70 ▲3.22 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for C4D Woo Variation Images
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.36 ▼1.01 | 1.70 ▼0.10 | 41.15 ▼4.01 |
Dashboard /wp-admin | 2,209 ▲21 | 5.92 ▲1.03 | 94.81 ▼19.62 | 39.49 ▼5.13 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▼0.06 | 32.03 ▼2.81 | 31.71 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.58 ▼5.61 | 676.37 ▼6.73 | 73.08 ▲4.67 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.13 | 105.91 ▲5.89 | 49.32 ▲6.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- 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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/c4d-woo-variation-swatches/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-variation-swatches/includes/tab.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-variation-swatches/includes/single.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-variation-swatches/includes/metaboxes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/c4d-woo-variation-swatches/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-variation-swatches/includes/loop.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/c4d-woo-variation-swatches/includes/cart.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in c4d-woo-variation-swatches/assets to your readme.txt
- Tags: You are using too many tags: 17 tag instead of maximum 10
c4d-woo-variation-swatches/c4d-woo-variation-swatches.php 92% from 13 tests
"C4D Woo Variation Images" version 1.3.64's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin8,780 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,146 | 299 | 4,324 |
PHP | 11 | 609 | 1,709 | 3,558 |
CSS | 7 | 44 | 31 | 532 |
PO File | 1 | 139 | 163 | 334 |
SVG | 2 | 1 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 48.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 78 | 77.23% |
▷ Protected methods | 23 | 22.77% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/flexslider/images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |
assets/cursor.png | 3.04KB | 2.06KB | ▼ 32.10% |
assets/css/img/zoomIn.png | 5.37KB | 2.82KB | ▼ 47.41% |
assets/plus_cursor.png | 2.36KB | 1.00KB | ▼ 57.46% |
assets/css/img/close.png | 20.76KB | 4.23KB | ▼ 79.62% |