Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.75MB] [CPU: ▼194.14ms] Passed 4 tests
Analyzing server-side resources used by Guild Wars 2 - WvW Matchups
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼0.95 | 5.30 ▼30.94 |
Dashboard /wp-admin | 1.91 ▼1.15 | 5.03 ▼43.65 |
Posts /wp-admin/edit.php | 1.91 ▼1.20 | 7.33 ▼41.79 |
Add New Post /wp-admin/post-new.php | 1.91 ▼3.53 | 5.58 ▼660.17 |
Media Library /wp-admin/upload.php | 1.91 ▼1.10 | 5.67 ▼27.61 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_gw2_wvw_matchups |
Browser metrics Passed 4 tests
Guild Wars 2 - WvW Matchups: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲137 | 15.78 ▲0.17 | 8.97 ▼1.18 | 50.22 ▼4.88 |
Dashboard /wp-admin | 2,991 ▲60 | 5.94 ▼0.20 | 149.73 ▲2.85 | 120.12 ▼0.58 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.69 ▼0.01 | 65.52 ▼3.65 | 92.08 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,685 ▲13 | 18.31 ▼0.58 | 402.42 ▲10.07 | 118.32 ▲6.09 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 4.99 ▼0.03 | 159.54 ▼9.51 | 128.53 ▼0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the gw2-wvw-matchups handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 1 option
- widget_gw2_wvw_matchups
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
guild-wars-2-wvw-matchups/gw2-wvw-matchups.php 92% from 13 tests
The main PHP script in "Guild Wars 2 - WvW Matchups" version 2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("guild-wars-2-wvw-matchups.php" instead of "gw2-wvw-matchups.php")
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
There were no executable files found in this plugin784 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 138 | 293 | 520 |
PO File | 4 | 80 | 80 | 238 |
CSS | 1 | 3 | 4 | 26 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 91.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.57% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.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
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 |
images/gw2-wvw-matchups.png | 1.92KB | 1.45KB | ▼ 24.43% |