Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.49ms] Passed 4 tests
An overview of server-side resources used by Odds Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.76 ▼0.04 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.42 ▼0.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.12 ▼2.94 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.92 ▼2.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.75 ▲0.31 |
Odds Widgets /wp-admin/options-general.php?page=odds-widgets | 3.25 | 32.30 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_odds_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Odds Widgets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.15 ▼1.60 | 5.53 ▲3.77 | 43.38 ▼4.07 |
Dashboard /wp-admin | 2,220 ▲28 | 5.86 ▲0.92 | 97.48 ▼13.53 | 36.28 ▼4.76 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.05 ▲0.04 | 37.85 ▲0.91 | 31.11 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,523 ▲6 | 23.08 ▲5.57 | 664.68 ▼33.02 | 51.64 ▲0.11 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.25 ▲0.08 | 96.31 ▲3.60 | 40.84 ▲0.09 |
Odds Widgets /wp-admin/options-general.php?page=odds-widgets | 831 | 1.72 | 29.11 | 28.56 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_odds_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=odds-widgets
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=odds-widgets
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/odds-widgets/includes/Odds_Widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/odds-widgets/includes/Odds_Widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/odds-widgets/odds-widgets.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/odds-widgets/includes/admin-page.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=odds-widgets
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/odds-widgets/js/odds-widgets.js?ver=6.3.1:6:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=odds-widgets
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Single Tournamnet Odds Widget), #2 (Horseracing Daily Races Odds Widget), #3 (Odds Widget admin form)
odds-widgets/odds-widgets.php Passed 13 tests
"Odds Widgets" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Create and customize live updating sport odds widgets on your wordpress blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected992 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 125 | 146 | 643 |
JavaScript | 1 | 46 | 19 | 306 |
CSS | 1 | 7 | 1 | 43 |
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.35 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 27 | |
▷ Static methods | 22 | 81.48% |
▷ Public methods | 26 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.70% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
4 compressed PNG files occupy 0.04MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 18.09KB | 17.85KB | ▼ 1.34% |
screenshot-3.png | 7.29KB | 7.24KB | ▼ 0.66% |
screenshot-2.png | 17.27KB | 17.21KB | 0.32% |
images/trans_bg_50.png | 0.11KB | 0.09KB | ▼ 12.84% |