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.08MB] [CPU: ▼4.16ms] Passed 4 tests
Server-side resources used by Bet sport Free
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.77 ▼1.49 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.48 ▼4.45 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.18 ▼0.15 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 91.72 ▼8.04 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.13 ▼2.64 |
Leagues /wp-admin/admin.php?page=bet-plugin-leagues | 3.33 | 34.74 |
Bets /wp-admin/admin.php?page=bet-plugin-bets | 3.33 | 30.96 |
Teams /wp-admin/admin.php?page=bet-plugin-em | 3.33 | 37.06 |
Matches /wp-admin/admin.php?page=bet-plugin-matches | 3.33 | 37.41 |
Settings /wp-admin/admin.php?page=bet-plugin-settings | 3.28 | 31.43 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
em_bet_seed |
Browser metrics Passed 4 tests
An overview of browser requirements for Bet sport Free
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲57 | 14.31 ▼0.35 | 1.81 ▼0.13 | 45.07 ▲0.57 |
Dashboard /wp-admin | 2,242 ▲68 | 5.70 ▲0.08 | 86.85 ▼4.18 | 80.08 ▲37.62 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.03 ▲0.05 | 39.24 ▲0.63 | 37.08 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 18.39 ▼5.04 | 672.90 ▲7.97 | 56.25 ▲4.37 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.27 ▲0.02 | 101.83 ▼4.53 | 65.91 ▲22.17 |
Leagues /wp-admin/admin.php?page=bet-plugin-leagues | 1,021 | 2.05 | 32.22 | 29.05 |
Bets /wp-admin/admin.php?page=bet-plugin-bets | 941 | 2.05 | 27.54 | 25.83 |
Teams /wp-admin/admin.php?page=bet-plugin-em | 1,084 | 2.06 | 26.34 | 28.39 |
Matches /wp-admin/admin.php?page=bet-plugin-matches | 1,080 | 2.20 | 25.29 | 27.95 |
Settings /wp-admin/admin.php?page=bet-plugin-settings | 838 | 2.01 | 23.49 | 27.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- em_bet_seed
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/bet-sport-free/Inc/class-Teams.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/bet-sport-free/Inc/class-Leagues.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/bet-sport-free/Inc/class-Bets.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/bet-sport-free/Inc/class-Matches.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function BetPlugin\\plugins_url() in wp-content/plugins/bet-sport-free/app.php:18
- > PHP Fatal error
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 93% 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 your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in bet-sport-free/assets to your readme.txt
bet-sport-free/app.php 92% from 13 tests
Analyzing the main PHP file in "Bet sport Free" version 1.0.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bet-sport-free.php" instead of "app.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,336 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 213 | 73 | 1,332 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 89 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo_menu.png | 1.54KB | 1.38KB | ▼ 10.41% |