Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.36ms] Passed 4 tests
An overview of server-side resources used by VG WooCarousel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 35.82 ▼1.79 |
Dashboard /wp-admin | 3.52 ▲0.22 | 50.55 ▲1.28 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 47.30 ▼1.21 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 91.17 ▲9.99 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.38 ▲0.29 |
VG New Carousel /wp-admin/post-new.php?post_type=vgwc | 3.44 | 42.20 |
VG WooCarousel /wp-admin/edit.php?post_type=vgwc | 3.49 | 45.98 |
About VGWC /wp-admin/edit.php?post_type=vgwc&page=vgwc_menu_settings | 3.41 | 34.78 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_theysaidso_widget |
vgwc_customer_type |
vgwc_version |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VG WooCarousel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,074 ▲328 | 15.39 ▲1.01 | 5.17 ▲3.47 | 39.55 ▼3.60 |
Dashboard /wp-admin | 2,371 ▲183 | 6.77 ▲1.89 | 138.29 ▲34.42 | 88.30 ▲44.65 |
Posts /wp-admin/edit.php | 2,289 ▲200 | 3.82 ▲1.83 | 48.83 ▲14.02 | 83.78 ▲52.05 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 23.19 ▲5.52 | 575.00 ▼136.80 | 95.60 ▲34.65 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.41 ▲0.15 | 79.80 ▼17.93 | 81.44 ▲34.97 |
VG New Carousel /wp-admin/post-new.php?post_type=vgwc | 1,958 | 1.73 | 13.32 | 56.03 |
VG WooCarousel /wp-admin/edit.php?post_type=vgwc | 1,259 | 3.53 | 47.29 | 73.68 |
About VGWC /wp-admin/edit.php?post_type=vgwc&page=vgwc_menu_settings | 1,137 | 3.28 | 42.31 | 66.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- vgwc_version
- can_compress_scripts
- vgwc_customer_type
- widget_recent-comments
- recovery_mode_email_last_sent
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=vgwc
- > Warning in wp-content/plugins/vg-woocarousel/includes/vgwc-functions.php+35
scandir(wp-content/themes/twentytwentyone/vgwc-themes): failed to open dir: No such file or directory
- > GET request to /wp-admin/post-new.php?post_type=vgwc
- > Warning in wp-content/plugins/vg-woocarousel/includes/vgwc-functions.php+35
scandir(): (errno 2): No such file or directory
- > GET request to /wp-admin/post-new.php?post_type=vgwc
- > Warning in wp-content/plugins/vg-woocarousel/includes/vgwc-functions.php+37
Invalid argument supplied for foreach()
- 20292 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vgwc
- > Notice in wp-content/plugins/vg-woocarousel/includes/vgwc-functions.php+8
Trying to get property 'slug' of non-object
- 10145 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vgwc
- > Notice in wp-content/plugins/vg-woocarousel/includes/vgwc-functions.php+8
Trying to get property 'name' of non-object
- 10145 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vgwc
- > Notice in wp-content/plugins/vg-woocarousel/includes/vgwc-functions.php+8
Undefined variable: return
- 10145 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vgwc
- > Notice in wp-content/plugins/vg-woocarousel/includes/vgwc-functions.php+9
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/post-new.php?post_type=vgwc
- > Error in wp-content/plugins/vg-woocarousel/includes/vgwc-functions.php+8
Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes)
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/vg-woocarousel/vgwc-settings.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vg-woocarousel/includes/vgwc-meta.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== vg-woocarousel ===
)
vg-woocarousel/vg-woocarousel.php Passed 13 tests
Analyzing the main PHP file in "VG WooCarousel" version 1.3
114 characters long description:
Products Carousel for WooCommerce. You can set unlimited carousel anywhere via short-codes and easy admin setting.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,805 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 209 | 17 | 1,303 |
PHP | 5 | 295 | 41 | 1,186 |
CSS | 4 | 15 | 19 | 316 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/icon-carousel.png | 2.78KB | 0.11KB | ▼ 96.10% |