Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼5.51ms] Passed 4 tests
This is a short check of server-side resources used by VG PostCarousel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 38.35 ▼4.67 |
Dashboard /wp-admin | 3.52 ▲0.21 | 48.43 ▼3.09 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 53.14 ▲7.23 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.65 ▼19.56 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.49 ▲5.30 |
About VGPC /wp-admin/edit.php?post_type=vgpc&page=vgpc_menu_settings | 3.42 | 36.76 |
VG New Carousel /wp-admin/post-new.php?post_type=vgpc | 3.45 | 41.23 |
VG PostCarousel /wp-admin/edit.php?post_type=vgpc | 3.49 | 40.35 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
vgpc_version |
widget_recent-comments |
category_children |
widget_recent-posts |
widget_theysaidso_widget |
vgpc_customer_type |
Browser metrics Passed 4 tests
A check of browser resources used by VG PostCarousel
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,074 ▲303 | 15.33 ▲1.04 | 5.03 ▲2.78 | 40.75 ▼1.19 |
Dashboard /wp-admin | 2,371 ▲186 | 6.71 ▲1.76 | 137.52 ▲34.84 | 93.64 ▲47.48 |
Posts /wp-admin/edit.php | 2,289 ▲193 | 3.60 ▲1.59 | 56.29 ▲14.31 | 72.33 ▲35.68 |
Add New Post /wp-admin/post-new.php | 1,562 ▲29 | 23.43 ▲0.27 | 677.19 ▲48.26 | 88.89 ▲33.56 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.46 ▲0.26 | 85.27 ▼13.58 | 82.38 ▲38.70 |
About VGPC /wp-admin/edit.php?post_type=vgpc&page=vgpc_menu_settings | 1,117 | 3.16 | 42.33 | 87.29 |
VG New Carousel /wp-admin/post-new.php?post_type=vgpc | 3,436 | 4.26 | 119.29 | 97.08 |
VG PostCarousel /wp-admin/edit.php?post_type=vgpc | 1,262 | 3.51 | 47.38 | 61.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- category_children
- db_upgraded
- widget_theysaidso_widget
- vgpc_version
- widget_recent-posts
- vgpc_customer_type
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=vgpc
- > Warning in wp-content/plugins/vg-postcarousel/includes/vgpc-functions.php+35
scandir(wp-content/themes/twentytwentyone/vgpc-themes): failed to open dir: No such file or directory
- > GET request to /wp-admin/post-new.php?post_type=vgpc
- > Warning in wp-content/plugins/vg-postcarousel/includes/vgpc-functions.php+35
scandir(): (errno 2): No such file or directory
- > GET request to /wp-admin/post-new.php?post_type=vgpc
- > Warning in wp-content/plugins/vg-postcarousel/includes/vgpc-functions.php+37
Invalid argument supplied for foreach()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vgpc
- > Notice in wp-content/plugins/vg-postcarousel/includes/vgpc-functions.php+13
Undefined variable: return
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/vg-postcarousel/vgpc-settings.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vg-postcarousel/includes/vgpc-meta.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== vg-postcarousel ===
)
vg-postcarousel/vg-postcarousel.php Passed 13 tests
The main PHP file in "VG PostCarousel" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
108 characters long description:
Post Carousel for Wordpress. 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
Good job! No executable or dangerous file extensions detected2,723 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 209 | 17 | 1,303 |
PHP | 5 | 293 | 36 | 1,158 |
CSS | 4 | 15 | 19 | 262 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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 | 16 | |
▷ Named functions | 16 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |