Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/minecraft-onlineusers-widget/widget.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; widget_mou has a deprecated constructor
Server metrics [RAM: ▼1.87MB] [CPU: ▼56.34ms] Passed 4 tests
An overview of server-side resources used by Minecraft Online Players Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 4.85 ▼41.46 |
Dashboard /wp-admin | 2.14 ▼1.16 | 6.63 ▼42.63 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 7.48 ▼45.02 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 5.51 ▼96.26 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 6.38 ▼32.04 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_widget-mou |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Minecraft Online Players Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲54 | 13.33 ▼1.03 | 2.35 ▲0.03 | 55.12 ▲10.41 |
Dashboard /wp-admin | 2,218 ▲15 | 5.86 ▼0.04 | 104.76 ▼4.49 | 39.88 ▲0.38 |
Posts /wp-admin/edit.php | 2,097 ▲18 | 2.01 ▼0.04 | 38.76 ▼3.96 | 43.19 ▲11.37 |
Add New Post /wp-admin/post-new.php | 1,541 ▼3 | 23.00 ▲0.41 | 623.85 ▲9.35 | 78.08 ▲10.62 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.25 ▼0.03 | 111.33 ▼1.57 | 46.76 ▼4.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/minecraft-onlineusers-widget/widget.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; widget_mou has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_widget-mou
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/minecraft-onlineusers-widget/plugin_action_links.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minecraft-onlineusers-widget/widgets_init.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/minecraft-onlineusers-widget/plugin_row_meta.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minecraft-onlineusers-widget/widgets_init.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_widget' not found in wp-content/plugins/minecraft-onlineusers-widget/widget.class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Un exemple d'affichage de plusieurs joueurs en ligne), #2 (Un autre exemple d'affichage de deux joueurs en ligne)
- Plugin Name: Please specify the plugin name on the first line (
=== minecraft-onlineusers-widget ===
) - Tags: You are using too many tags: 22 tag instead of maximum 10
minecraft-onlineusers-widget/widget.php 92% from 13 tests
"Minecraft Online Players Widget" version 3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("minecraft-onlineusers-widget.php" instead of "widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin326 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 79 | 27 | 326 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 30.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 16.85KB | 10.40KB | ▼ 38.29% |
screenshot-2.png | 4.69KB | 3.43KB | ▼ 26.92% |