Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼8.39ms] 75% from 4 tests
Server-side resources used by Plugin Name: VIP-Grinders Leaderboards
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 629.76ms on /wp-admin/admin.php?page=vipg-leaderboard-setup)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 34.08 ▼4.23 |
Dashboard /wp-admin | 3.43 ▲0.09 | 44.98 ▼18.06 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.56 ▲0.08 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.19 ▼11.35 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.67 ▲5.97 |
Help /wp-admin/admin.php?page=vipg-leaderboard-help | 3.32 | 28.18 |
Get Short Code /wp-admin/admin.php?page=vipg-leaderboard-setup | 3.48 | 629.76 |
VG Leaderboards /wp-admin/admin.php?page=vipg-leaderboard | 3.32 | 30.63 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
vglb_options |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Plugin Name: VIP-Grinders Leaderboards
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲81 | 14.37 ▲0.01 | 1.64 ▼0.01 | 38.19 ▼5.70 |
Dashboard /wp-admin | 2,234 ▲57 | 5.74 ▲0.17 | 98.78 ▼0.79 | 41.44 ▼0.77 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.04 ▲0.04 | 44.05 ▲7.25 | 36.25 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.32 ▼0.36 | 619.82 ▼55.66 | 54.08 ▼6.43 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.27 ▲0.02 | 101.39 ▲4.12 | 44.83 ▲2.69 |
Help /wp-admin/admin.php?page=vipg-leaderboard-help | 960 | 2.09 | 29.09 | 31.80 |
Get Short Code /wp-admin/admin.php?page=vipg-leaderboard-setup | 4,958 | 2.12 | 30.49 | 42.77 |
VG Leaderboards /wp-admin/admin.php?page=vipg-leaderboard | 3,714 | 2.19 | 29.84 | 47.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=vipg-leaderboard-help
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/vip-grinders-leaderboards/VIPG_LB_Setup.php+74
Undefined index: promotion_id
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/vip-grinders-leaderboards/vipg-leaderboard.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/vip-grinders-leaderboards/uninstall.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 75% 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:
- Requires at least: Invalid version format
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Plugin Name: VIP-Grinders Leaderboards===
) - Contributors: Contributors not specified
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in vip-grinders-leaderboards/assets to your readme.txt
vip-grinders-leaderboards/vipg-leaderboard.php 85% from 13 tests
The primary PHP file in "Plugin Name: VIP-Grinders Leaderboards" version 1.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("vip-grinders-leaderboards.php" instead of "vipg-leaderboard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected874 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 147 | 36 | 614 |
JavaScript | 1 | 48 | 0 | 221 |
CSS | 1 | 10 | 0 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 31 | 100.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.06MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/setup_style_css.png | 34.98KB | 34.06KB | ▼ 2.62% |
assets/setup_short_code_editor.png | 9.14KB | 8.16KB | ▼ 10.75% |
assets/setup_short_code_page.png | 15.07KB | 14.17KB | ▼ 6.02% |