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.15MB] [CPU: ▼5.62ms] Passed 4 tests
A check of server-side resources used by Soccer Action
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.55 ▼1.64 |
Dashboard /wp-admin | 3.49 ▲0.18 | 50.30 ▼1.79 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.19 ▲3.03 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 85.72 ▼22.09 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 46.96 ▲9.47 |
Actions /wp-admin/admin.php?page=daextsocact-actions | 3.50 | 38.11 |
Options /wp-admin/admin.php?page=daextsocact-options | 3.38 | 38.48 |
Soccer Engine /wp-admin/admin.php?page=daextsocact-soccer-engine | 3.38 | 33.74 |
Help /wp-admin/admin.php?page=daextsocact-help | 3.38 | 27.79 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 211 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_daextsocact_action |
wp_daextsocact_field |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
daextsocact_database_version |
daextsocact_actions_menu_capability |
daextsocact_margin_bottom |
daextsocact_margin_top |
can_compress_scripts |
theysaidso_admin_options |
daextsocact_label_font |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Soccer Action: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲193 | 13.84 ▼0.51 | 8.96 ▲7.07 | 41.72 ▲1.09 |
Dashboard /wp-admin | 2,249 ▲72 | 5.50 ▼0.15 | 100.17 ▲8.51 | 43.09 ▲2.07 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 1.99 ▼0.02 | 37.31 ▲2.80 | 36.29 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.03 ▲0.03 | 653.58 ▼28.82 | 68.36 ▼0.18 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.22 ▲0.02 | 96.21 ▼1.46 | 39.77 ▼4.59 |
Actions /wp-admin/admin.php?page=daextsocact-actions | 1,278 | 2.56 | 80.31 | 38.38 |
Options /wp-admin/admin.php?page=daextsocact-options | 1,032 | 2.44 | 36.82 | 32.91 |
Soccer Engine /wp-admin/admin.php?page=daextsocact-soccer-engine | 905 | 2.00 | 24.30 | 27.47 |
Help /wp-admin/admin.php?page=daextsocact-help | 855 | 2.03 | 27.71 | 23.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-action/admin/view/actions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-action/admin/view/soccer-engine.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-action/admin/view/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-action/admin/view/options.php:3
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
soccer-action/init.php 92% from 13 tests
"Soccer Action" version 1.05's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("soccer-action.php" instead of "init.php")
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
Everything looks great! No dangerous files found in this plugin15,054 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 70 | 2,680 | 851 | 9,669 |
CSS | 12 | 811 | 94 | 3,792 |
PHP | 12 | 661 | 262 | 1,576 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
An short overview of 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.26 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 6 | 11.11% |
▷ Public methods | 44 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 18.52% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
115 PNG files occupy 0.71MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
shared/assets/img/red-player-black-skin/red-black-kick-2-left.png | 4.73KB | 2.01KB | ▼ 57.41% |
shared/assets/img/blue-player-white-skin/blue-white-stand-frontal.png | 3.94KB | 1.91KB | ▼ 51.67% |
shared/assets/img/ball/ball-ccr-trail-225.png | 4.90KB | 1.86KB | ▼ 61.99% |
shared/assets/img/ball/ball-ccr-trail-0.png | 2.80KB | 1.74KB | ▼ 37.88% |
shared/assets/img/red-player-black-skin/red-black-sprint-left.png | 4.66KB | 2.05KB | ▼ 55.90% |