Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼8.27ms] Passed 4 tests
Server-side resources used by FA Sport Odds
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 35.41 ▼6.54 |
Dashboard /wp-admin | 3.51 ▲0.16 | 44.87 ▼21.81 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.73 ▲2.80 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 92.65 ▲3.53 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.68 ▼7.53 |
Odds Translation /wp-admin/options-general.php?page=odds-translation-page | 3.40 | 28.90 |
FA Sport Odds MyAccount /wp-admin/options-general.php?page=fa-odds-account-page | 3.37 | 31.35 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_fa_sportodds_odds |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
fa-sport-odds |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
FA Sport Odds: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲164 | 13.53 ▼1.05 | 8.67 ▲6.84 | 41.59 ▲2.66 |
Dashboard /wp-admin | 2,231 ▲43 | 5.84 ▼0.06 | 96.94 ▼19.20 | 38.90 ▼4.17 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.03 ▲0.03 | 42.06 ▲4.61 | 35.74 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 18.24 ▼4.75 | 596.88 ▼159.41 | 64.82 ▲8.76 |
Media Library /wp-admin/upload.php | 1,410 ▲19 | 4.21 ▼0.02 | 101.30 ▼14.93 | 43.40 ▼3.57 |
Odds Translation /wp-admin/options-general.php?page=odds-translation-page | 909 | 2.03 | 26.49 | 27.15 |
FA Sport Odds MyAccount /wp-admin/options-general.php?page=fa-odds-account-page | 926 | 2.05 | 25.18 | 35.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_fa_sportodds_odds
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=odds-translation-page
- > Notice in wp-content/plugins/fa-sport-odds/fa-odds-translation.php+23
Undefined variable: where
- > GET request to /wp-admin/options-general.php?page=odds-translation-page
- > Notice in wp-content/plugins/fa-sport-odds/fa-odds-translation.php+82
Undefined index: s
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fa-odds-account-page
- > Notice in wp-content/plugins/fa-sport-odds/fa-sport-odds.php+264
Undefined index: status
- > GET request to /wp-admin/options-general.php?page=fa-odds-account-page
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
fa-sport-odds/fa-sport-odds.php 85% from 13 tests
The main PHP file in "FA Sport Odds" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 230 characters long)
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,162 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 202 | 14 | 808 |
JavaScript | 3 | 27 | 20 | 210 |
CSS | 1 | 11 | 1 | 144 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 18 | 56.25% |
▷ Public methods | 29 | 90.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sports_icons_sprite.png | 49.36KB | 12.72KB | ▼ 74.22% |