Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼5.44ms] Passed 4 tests
This is a short check of server-side resources used by WOTEU Press
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.79 ▼11.33 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.94 ▲4.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 52.05 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.32 ▼10.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.83 ▼1.86 |
WOTEU Press /wp-admin/options-general.php?page=woteu-press | 3.21 | 31.84 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_wot_press |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WOTEU Press
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.30 ▼0.95 | 2.05 ▼0.37 | 42.77 ▲5.71 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.05 | 106.92 ▼10.50 | 44.77 ▼1.02 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.00 | 39.89 ▼1.05 | 34.94 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 23.27 ▼0.11 | 632.21 ▼47.06 | 60.07 ▲1.25 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.25 ▲0.02 | 97.94 ▼5.46 | 41.08 ▼3.08 |
WOTEU Press /wp-admin/options-general.php?page=woteu-press | 785 | 2.06 | 24.04 | 27.44 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_wot_press
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woteu-press/inc/woteu-press-widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woteu-press/inc/woteu-press-func.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woteu-press/inc/woteu-press-shortcode.php:133
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woteu-press/inc/woteu-press-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woteu-press/inc/woteu-press-func.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: "keep.your.money"
- Screenshots: A description for screenshot #0 is required in woteu-press/assets to your readme.txt
woteu-press/woteu-press.php Passed 13 tests
The entry point to "WOTEU Press" version 0.2 is a PHP file that has certain tags in its header comment area
110 characters long description:
Displays account data from Wargaming.net. Now is statistic from your profile in World of Tanks game available.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected595 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 63 | 50 | 307 |
PO File | 4 | 113 | 114 | 288 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 13 | |
▷ Named functions | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot1.png | 79.37KB | 24.04KB | ▼ 69.71% |