Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.06ms] Passed 4 tests
This is a short check of server-side resources used by VG PostSlider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.78 ▼3.14 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.30 ▼2.04 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.37 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.14 ▲3.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 38.57 ▲5.93 |
About VGPS /wp-admin/edit.php?post_type=vgps&page=vgps_menu_settings | 3.27 | 35.06 |
VG New Slider /wp-admin/post-new.php?post_type=vgps | 3.28 | 40.80 |
VG PostSlider /wp-admin/edit.php?post_type=vgps | 3.32 | 43.07 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
vgps_version |
category_children |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
vgps_customer_type |
can_compress_scripts |
Browser metrics Passed 4 tests
VG PostSlider: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,096 ▲339 | 15.44 ▲1.14 | 7.02 ▲4.95 | 41.71 ▼1.58 |
Dashboard /wp-admin | 2,390 ▲201 | 6.68 ▲1.77 | 136.31 ▲15.53 | 41.54 ▼3.48 |
Posts /wp-admin/edit.php | 2,296 ▲207 | 3.65 ▲1.59 | 53.40 ▲18.63 | 33.12 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,707 ▲193 | 22.74 ▲5.15 | 623.33 ▼24.82 | 32.74 ▼27.36 |
Media Library /wp-admin/upload.php | 1,436 ▲45 | 4.48 ▲0.25 | 82.17 ▼18.39 | 42.06 ▼0.20 |
About VGPS /wp-admin/edit.php?post_type=vgps&page=vgps_menu_settings | 1,100 | 3.32 | 39.33 | 44.15 |
VG New Slider /wp-admin/post-new.php?post_type=vgps | 4,062 | 4.64 | 122.60 | 55.68 |
VG PostSlider /wp-admin/edit.php?post_type=vgps | 1,254 | 3.74 | 44.43 | 26.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- vgps_version
- db_upgraded
- widget_recent-posts
- vgps_customer_type
- widget_theysaidso_widget
- theysaidso_admin_options
- category_children
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=vgps
- > Warning in wp-content/plugins/vg-postslider/includes/vgps-functions.php+42
scandir(wp-content/themes/twentytwentyone/vgps-themes): failed to open dir: No such file or directory
- > GET request to /wp-admin/post-new.php?post_type=vgps
- > Warning in wp-content/plugins/vg-postslider/includes/vgps-functions.php+42
scandir(): (errno 2): No such file or directory
- > GET request to /wp-admin/post-new.php?post_type=vgps
- > Warning in wp-content/plugins/vg-postslider/includes/vgps-functions.php+44
Invalid argument supplied for foreach()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vgps
- > Notice in wp-content/plugins/vg-postslider/includes/vgps-functions.php+20
Undefined variable: return
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/vg-postslider/vgps-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-postslider/includes/vgps-meta.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== vg-postslider ===
)
vg-postslider/vg-postslider.php Passed 13 tests
Analyzing the main PHP file in "VG PostSlider" version 1.0
114 characters long description:
Responsive & Flexible Post Slider for WordPress. Unlimited slider anywhere via short-codes and easy admin setting.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,610 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,269 | 934 | 3,728 |
PHP | 5 | 300 | 59 | 1,353 |
CSS | 3 | 13 | 21 | 529 |
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 | 17 | |
▷ Named functions | 17 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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% |