Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.95ms] Passed 4 tests
A check of server-side resources used by WPUBG
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.26 ▼4.02 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.00 ▼13.85 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.84 ▲6.01 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.51 ▲3.01 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.76 ▼0.95 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_wpubg |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WPUBG: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.39 | 1.88 ▼0.36 | 43.41 ▲4.16 |
Dashboard /wp-admin | 2,206 ▲15 | 5.87 ▼0.03 | 108.55 ▲6.85 | 44.49 ▲4.40 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.00 | 40.22 ▲3.64 | 37.06 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 18.59 ▼4.63 | 639.64 ▼53.10 | 57.54 ▼2.59 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▲0.00 | 112.49 ▲6.91 | 50.84 ▲4.52 |
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: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_wpubg
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpubg/wpubg.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: statistics, pubg, battlegrounds, playerunknowns, statistik...
wpubg/wpubg.php Passed 13 tests
"WPUBG" version 0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
Display your PUBG stats of the current season as a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected292 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 65 | 63 | 292 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 7.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.54MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gfx/skilled.png | 77.07KB | 21.73KB | ▼ 71.81% |
gfx/specialist.png | 78.89KB | 22.46KB | ▼ 71.53% |
gfx/novice.png | 59.53KB | 19.20KB | ▼ 67.75% |
gfx/unranked.png | 31.19KB | 13.84KB | ▼ 55.62% |
gfx/experienced.png | 65.21KB | 21.15KB | ▼ 67.57% |