Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼142.39ms] Passed 4 tests
Server-side resources used by Advanced Steam Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 33.56 ▲13.26 |
Dashboard /wp-admin | 3.16 ▲0.10 | 47.00 ▲1.65 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 41.91 ▼2.44 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 82.79 ▼569.78 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 33.49 ▲1.00 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_advancedsteamwidget |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Steam Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲73 | 16.23 ▲0.37 | 7.12 ▼1.20 | 47.08 ▼1.91 |
Dashboard /wp-admin | 2,970 ▲36 | 5.86 ▼0.09 | 136.19 ▼9.72 | 115.02 ▼4.25 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 63.76 ▼3.32 | 93.21 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,498 ▼2 | 18.83 ▼0.04 | 373.27 ▼3.97 | 110.14 ▲4.64 |
Media Library /wp-admin/upload.php | 1,813 ▲6 | 5.00 ▼0.03 | 147.05 ▲9.81 | 119.03 ▼6.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-steam-widget/steam_widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Profile Only preset), #2 (Profile Small preset), #3 (Profile + Games preset), #4 (Games Only preset), #5 (Games Grid preset), #6 (Widget options)
advanced-steam-widget/steam_widget.php 92% from 13 tests
"Advanced Steam Widget" version 1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-steam-widget.php" instead of "steam_widget.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
Everything looks great! No dangerous files found in this plugin687 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 81 | 81 | 687 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 72.00 |
▷ Minimum class complexity | 72.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 7.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 6 | |
▷ Named functions | 6 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 25.30KB | 9.63KB | ▼ 61.95% |
screenshot-1.png | 8.07KB | 4.47KB | ▼ 44.61% |
screenshot-6.png | 25.02KB | 10.69KB | ▼ 57.26% |
screenshot-2.png | 4.28KB | 2.66KB | ▼ 37.85% |
screenshot-4.png | 9.95KB | 4.62KB | ▼ 53.57% |