Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼5.45ms] Passed 4 tests
Analyzing server-side resources used by Soccer Live Scores
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.35 ▼2.97 |
Dashboard /wp-admin | 3.66 ▲0.36 | 49.33 ▼3.18 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 47.46 ▲2.49 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 83.95 ▼15.37 |
Media Library /wp-admin/upload.php | 3.52 ▲0.30 | 35.18 ▼0.29 |
Help /wp-admin/admin.php?page=daextsolisc-help | 3.49 | 31.69 |
Options /wp-admin/admin.php?page=daextsolisc-options | 3.50 | 33.54 |
Events /wp-admin/admin.php?page=daextsolisc-events | 3.76 | 34.73 |
Soccer Engine /wp-admin/admin.php?page=daextsolisc-soccer-engine | 3.50 | 34.58 |
Matches /wp-admin/admin.php?page=daextsolisc-matches | 3.81 | 38.15 |
Event Types /wp-admin/admin.php?page=daextsolisc-event-types | 3.64 | 39.73 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 124 new files
Database: 3 new tables, 16 new options
New tables |
---|
wp_daextsolisc_match |
wp_daextsolisc_event_type |
wp_daextsolisc_event |
New WordPress options |
---|
widget_recent-comments |
daextsolisc_text_primary_color |
can_compress_scripts |
widget_theysaidso_widget |
daextsolisc_top_margin |
daextsolisc_google_fonts |
daextsolisc_separator_color |
db_upgraded |
daextsolisc_bottom_margin |
daextsolisc_text_secondary_color |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Soccer Live Scores
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲207 | 13.78 ▼0.62 | 9.31 ▲7.59 | 78.83 ▲35.45 |
Dashboard /wp-admin | 2,260 ▲79 | 5.66 ▼0.06 | 90.22 ▼18.53 | 39.01 ▼5.54 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.03 ▲0.07 | 34.66 ▼1.26 | 35.46 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,560 ▲31 | 23.46 ▼0.02 | 696.29 ▲29.50 | 55.86 ▲4.80 |
Media Library /wp-admin/upload.php | 1,462 ▲59 | 4.22 ▼0.00 | 95.88 ▼3.28 | 41.05 ▼3.43 |
Help /wp-admin/admin.php?page=daextsolisc-help | 865 | 2.01 | 26.50 | 35.20 |
Options /wp-admin/admin.php?page=daextsolisc-options | 1,334 | 3.04 | 58.22 | 35.80 |
Events /wp-admin/admin.php?page=daextsolisc-events | 931 | 2.25 | 54.19 | 31.30 |
Soccer Engine /wp-admin/admin.php?page=daextsolisc-soccer-engine | 913 | 2.00 | 23.83 | 28.53 |
Matches /wp-admin/admin.php?page=daextsolisc-matches | 1,509 | 4.29 | 80.29 | 31.71 |
Event Types /wp-admin/admin.php?page=daextsolisc-event-types | 1,477 | 3.72 | 74.74 | 38.93 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Daextsolisc_Admin' does not have a method 'dc_deactivate'
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=daextsolisc-options
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-live-scores/admin/view/soccer-engine.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-live-scores/admin/view/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-live-scores/admin/view/events.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-live-scores/admin/view/event_types.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-live-scores/admin/view/matches.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/soccer-live-scores/admin/view/options.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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
soccer-live-scores/init.php 92% from 13 tests
"Soccer Live Scores" version 1.03's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("soccer-live-scores.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected15,237 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 73 | 2,656 | 824 | 9,719 |
CSS | 15 | 631 | 77 | 2,993 |
PHP | 14 | 953 | 441 | 2,508 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 74 | |
▷ Static methods | 7 | 9.46% |
▷ Public methods | 66 | 89.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.81% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/edit-hover.png | 1.30KB | 0.33KB | ▼ 74.47% |
admin/assets/img/search-hover.png | 0.21KB | 0.21KB | 0.00% |
admin/assets/img/trash-hover.png | 1.13KB | 0.19KB | ▼ 83.13% |
admin/assets/img/help-fdfdfd.png | 15.52KB | 0.53KB | ▼ 96.60% |
public/assets/img/goal.png | 0.32KB | 0.24KB | ▼ 26.97% |