Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, function 'msplugin_activate' not found or invalid function name
Server metrics [RAM: ▼0.27MB] [CPU: ▼298.74ms] Passed 4 tests
A check of server-side resources used by Football Live Scores
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.13 | 56.62 ▲9.04 |
Dashboard /wp-admin | 3.34 ▼0.07 | 25.93 ▼7.82 |
Posts /wp-admin/edit.php | 3.46 ▼0.18 | 26.33 ▼13.24 |
Add New Post /wp-admin/post-new.php | 6.12 ▼0.86 | 87.49 ▼1,165.24 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 23.08 ▼8.64 |
Live Scores /wp-admin/options-general.php?page=livescore-plugin | 3.32 | 23.47 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 1 new option
New WordPress options |
---|
Live_Scores_Options |
Browser metrics Passed 4 tests
Checking browser requirements for Football Live Scores
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,985 ▲263 | 16.58 ▲0.93 | 8.83 ▲2.33 | 2.90 ▲0.44 |
Dashboard /wp-admin | 2,962 ▲107 | 6.21 ▲0.04 | 119.16 ▼19.43 | 167.47 ▲7.14 |
Posts /wp-admin/edit.php | 2,759 ▲71 | 3.37 ▲0.02 | 64.70 ▼0.00 | 157.25 ▲17.21 |
Add New Post /wp-admin/post-new.php | 1,681 ▼71 | 20.21 ▼0.81 | 449.07 ▼27.71 | 153.72 ▼5.72 |
Media Library /wp-admin/upload.php | 1,768 ▲73 | 5.59 ▲0.07 | 161.00 ▲17.60 | 208.76 ▲17.44 |
Live Scores /wp-admin/options-general.php?page=livescore-plugin | 1,327 | 2.57 | 55.34 | 138.65 |
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
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, function 'msplugin_deactivate' not found or invalid function name
- This plugin does not fully uninstall, leaving 1 option in the database
- Live_Scores_Options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=livescore-plugin
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method ms_Main::show_admin_notice() should not be called statically
SRP 0% 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 fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/football-live-scores/views/global-settings/page-header.php
- > /wp-content/plugins/football-live-scores/includes/admin-notice-helper/admin-notice-helper.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ms_Module' not found in wp-content/plugins/football-live-scores/classes/ms-show.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/football-live-scores/includes/admin-notice-helper/admin-notice.php:1
- > PHP Notice
Undefined variable: setting_logo_path in wp-content/plugins/football-live-scores/views/global-settings/page-header.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/football-live-scores/livescore.php:11
- > PHP Fatal error
Uncaught Error: Class 'ms_Main' not found in wp-content/plugins/football-live-scores/views/global-settings/page-notice.php:58
- > PHP Fatal error
Uncaught Error: Class 'ms_Module' not found in wp-content/plugins/football-live-scores/classes/ms-main.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/football-live-scores/infot.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Donate link: Invalid URI ("")
- Screenshots: Add images for these screenshots: #1 (Live Score Desktop Screen Size - screenshot-1.jpg), #2 (Live Score Pad Screen Size - screenshot-2.jpg), #3 (Live Score Phone Screen Size - screenshot-3.jpg)
football-live-scores/livescore.php 92% from 13 tests
This is the main PHP file of "Football Live Scores" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("football-live-scores.php" instead of "livescore.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin568 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 141 | 143 | 476 |
JavaScript | 2 | 15 | 9 | 48 |
CSS | 2 | 3 | 0 | 25 |
Markdown | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 12 | 44.44% |
▷ Public methods | 23 | 85.19% |
▷ Protected methods | 4 | 14.81% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blank.png | 0.27KB | 0.10KB | ▼ 61.68% |