Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.06MB] [CPU: ▼9.96ms] Passed 4 tests
This is a short check of server-side resources used by Scores - Livescore for football, soccer, tennis, basketball, handball, volleyball & hockey
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.11 | 43.78 ▲3.90 |
Dashboard /wp-admin | 3.34 ▼0.00 | 36.96 ▼17.53 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 43.21 ▼12.99 |
Add New Post /wp-admin/post-new.php | 5.59 ▼0.34 | 77.46 ▼11.68 |
Media Library /wp-admin/upload.php | 3.35 ▲0.08 | 38.43 ▲2.35 |
Live Scores /wp-admin/options-general.php?page=live-scores-plugin-menu | 3.32 | 32.35 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
Live_Scores_Options |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Scores - Livescore for football, soccer, tennis, basketball, handball, volleyball & hockey
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.80 ▼0.57 | 8.12 ▲6.10 | 43.44 ▲4.30 |
Dashboard /wp-admin | 2,237 ▲63 | 5.53 ▼0.06 | 87.47 ▼5.45 | 42.29 ▲3.14 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 2.01 ▲0.00 | 36.33 ▼6.02 | 33.25 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,570 ▲35 | 23.12 ▲5.10 | 688.21 ▲64.90 | 64.29 ▼10.94 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.24 ▲0.02 | 103.56 ▼8.35 | 43.55 ▼3.25 |
Live Scores /wp-admin/options-general.php?page=live-scores-plugin-menu | 987 | 1.71 | 26.89 | 35.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- Live_Scores_Options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=live-scores-plugin-menu
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WLS_Main::show_admin_notice() should not be called statically
- > GET request to /wp-admin/options-general.php?page=live-scores-plugin-menu
- > Notice in wp-content/plugins/live-scores/views/global-settings/page-notice.php+59
Undefined index: wsw_initial_dt
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/live-scores/views/global-settings/page-header.php
- > /wp-content/plugins/live-scores/includes/admin-notice-helper/admin-notice-helper.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: setting_logo_path in wp-content/plugins/live-scores/views/global-settings/page-header.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WLS_Module' not found in wp-content/plugins/live-scores/classes/wls-show.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/live-scores/livescore.php:11
- > PHP Fatal error
Uncaught Error: Class 'WLS_Main' not found in wp-content/plugins/live-scores/views/global-settings/page-notice.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/live-scores/includes/admin-notice-helper/admin-notice.php:1
- > PHP Fatal error
Uncaught Error: Class 'WLS_Module' not found in wp-content/plugins/live-scores/classes/wls-main.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/live-scores/infot.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 need to be fixed:
- Tags: You are using too many tags: 36 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Live Scores Settings), #2 (Live Scores in action.)
live-scores/livescore.php 85% from 13 tests
The main PHP script in "Scores - Livescore for football, soccer, tennis, basketball, handball, volleyball & hockey" version 2.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("live-scores.php" instead of "livescore.php")
- Description: Keep the plugin description shorter than 140 characters (currently 237 characters long)
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
Good job! No executable or dangerous file extensions detected903 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 191 | 166 | 834 |
CSS | 2 | 3 | 0 | 25 |
JavaScript | 1 | 6 | 2 | 25 |
Markdown | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 25 | |
▷ Static methods | 10 | 40.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 4 | 16.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 46 | 97.87% |
▷ Anonymous functions | 1 | 2.13% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |