Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/worldcup-widget/worldcup-widget.php+169
Function create_function() is deprecated
Server metrics [RAM: ▼1.80MB] [CPU: ▼193.92ms] Passed 4 tests
An overview of server-side resources used by WorldCup Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼1.00 | 5.43 ▼34.33 |
Dashboard /wp-admin | 1.85 ▼1.20 | 11.12 ▼40.30 |
Posts /wp-admin/edit.php | 1.85 ▼1.25 | 5.61 ▼43.24 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.58 | 6.00 ▼657.79 |
Media Library /wp-admin/upload.php | 1.85 ▼1.15 | 5.50 ▼30.78 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/worldcup-widget/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/worldcup-widget/flags/Co\314\202te d'Ivoire.png"
Filesystem: 52 new files
Database: no new tables, 3 new options
New WordPress options |
---|
widget_worldcup-widget-groups |
widget_worldcup-widget-scorers |
widget_worldcup-widget-main |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WorldCup Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲234 | 16.24 ▲0.66 | 14.18 ▲0.80 | 53.32 ▲5.04 |
Dashboard /wp-admin | 2,971 ▲37 | 6.00 ▼0.18 | 149.22 ▼31.39 | 113.84 ▼6.75 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.72 ▲0.00 | 75.98 ▲8.43 | 93.06 ▼7.00 |
Add New Post /wp-admin/post-new.php | 1,619 ▲4 | 21.67 ▲0.66 | 309.92 ▼10.83 | 115.59 ▼2.29 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.06 ▲0.04 | 161.82 ▲2.59 | 124.82 ▼1.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/worldcup-widget/worldcup-widget.php+169
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 3 options
- widget_worldcup-widget-main
- widget_worldcup-widget-scorers
- widget_worldcup-widget-groups
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/worldcup-widget/views/group-stage/admin.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/worldcup-widget/views/scorers/widget.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/worldcup-widget/views/scorers/widget.php on line 6
- > PHP Notice
Undefined variable: instance in wp-content/plugins/worldcup-widget/views/scorers/widget.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/worldcup-widget/views/widget.php on line 3
- > PHP Notice
Undefined variable: instance in wp-content/plugins/worldcup-widget/views/scorers/widget.php on line 6
- > PHP Notice
Undefined variable: instance in wp-content/plugins/worldcup-widget/views/scorers/widget.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/worldcup-widget/views/widget.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/worldcup-widget/views/widget.php on line 4
- > PHP Notice
Undefined variable: instance in wp-content/plugins/worldcup-widget/views/widget.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Top Scorer Widget admin and display, with stats toggled.), #2 (Main Widget admin and display.), #3 (Group Stage/Stats widget.)
worldcup-widget/worldcup-widget.php 92% from 13 tests
"WorldCup Widget" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Make the plugin description longer than 10 characters (currently 0 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin826 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 235 | 216 | 626 |
CSS | 2 | 0 | 11 | 180 |
JavaScript | 2 | 0 | 0 | 19 |
JSON | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
33 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/Honduras.png | 0.93KB | 0.87KB | ▼ 6.91% |
flags/Korea Republic.png | 2.08KB | 1.55KB | ▼ 25.27% |
flags/Ecuador.png | 1.59KB | 1.49KB | ▼ 6.20% |
flags/Brazil.png | 2.49KB | 1.75KB | ▼ 29.74% |
flags/United States.png | 1.08KB | 0.92KB | ▼ 14.44% |