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
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/live-cricket-score/live_cricket_score.php+76
Methods with the same name as their class will not be constructors in a future version of PHP; cricket_score has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.38ms] Passed 4 tests
Server-side resources used by Live Cricket Score
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.37 ▼37.92 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.16 ▼54.86 |
Posts /wp-admin/edit.php | 2.11 ▼1.26 | 7.09 ▼44.02 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.28 ▼80.70 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.47 ▼28.17 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_cricket_score |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Live Cricket Score: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.44 ▼0.96 | 8.37 ▲6.74 | 41.47 ▼2.01 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▼0.02 | 96.16 ▲4.68 | 40.08 ▼0.61 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.01 | 39.92 ▲1.24 | 34.46 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.01 ▼0.10 | 689.04 ▼2.97 | 60.96 ▲6.14 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.20 ▼0.04 | 100.97 ▼5.58 | 41.90 ▼6.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/live-cricket-score/live_cricket_score.php+76
Methods with the same name as their class will not be constructors in a future version of PHP; cricket_score has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_cricket_score
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)
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-cricket-score/live_cricket_score.php:51
- > PHP Warning
file_get_contents(http://synd.cricbuzz.com/j2me/1.0/livematches.xml): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden\r in wp-content/plugins/live-cricket-score/lib/simple_html_dom.php on line 149
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: live cricket score, sports, cricket, cricket score
live-cricket-score/live_cricket_score.php 92% from 13 tests
"Live Cricket Score" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("live-cricket-score.php" instead of "live_cricket_score.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,091 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 386 | 276 | 1,390 |
JavaScript | 2 | 10 | 16 | 511 |
CSS | 2 | 5 | 0 | 190 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 109.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 1 | 1.12% |
▷ Public methods | 73 | 82.02% |
▷ Protected methods | 16 | 17.98% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
images/custom_hsb_b.png | 1.07KB | 0.82KB | ▼ 23.61% |
images/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
images/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |
images/colorpicker_submit.png | 0.96KB | 1.04KB | 0.00% |