Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/live-cricket-scores-widget/widget_class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; scoreboard_widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.70ms] Passed 4 tests
An overview of server-side resources used by Live Cricket Scores Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.49 ▼36.47 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.98 ▼43.54 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.62 ▼44.50 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.55 ▼82.28 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.06 ▼30.43 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
widget_scoreboard_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Live Cricket Scores Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.74 ▲0.53 | 1.81 ▼0.31 | 47.07 ▲2.66 |
Dashboard /wp-admin | 2,200 ▲12 | 5.83 ▲0.92 | 102.31 ▼8.19 | 39.81 ▼3.90 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 39.81 ▲2.27 | 37.08 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,538 ▼4 | 23.30 ▲5.23 | 663.32 ▲39.29 | 61.03 ▲10.62 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.17 ▼0.04 | 103.35 ▲2.09 | 45.38 ▲0.17 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/live-cricket-scores-widget/widget_class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; scoreboard_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_scoreboard_widget
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/live-cricket-scores-widget/widget_class.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-cricket-scores-widget/scoreboard_widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (A simple display of Live Cricket Score on the Sidebar as a Widget.)
live-cricket-scores-widget/scoreboard_widget.php 92% from 13 tests
This is the main PHP file of "Live Cricket Scores Widget" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("live-cricket-scores-widget.php" instead of "scoreboard_widget.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 plugin70 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 43 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 2 | 33.33% |
▷ Public methods | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin