Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.75ms] Passed 4 tests
A check of server-side resources used by Betting Payback Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.79 ▼1.86 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.47 ▼5.12 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 51.10 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.35 ▼6.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.64 ▲2.71 |
Betting Payback /wp-admin/options-general.php?page=betting_payback_calculator_options | 3.22 | 29.57 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Betting Payback Calculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.41 ▼0.20 | 1.77 ▼0.35 | 43.54 ▼2.89 |
Dashboard /wp-admin | 2,207 ▲22 | 5.77 ▼0.24 | 102.73 ▼14.15 | 42.46 ▼5.54 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 35.68 ▼1.80 | 35.73 ▲4.98 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.10 ▲0.11 | 675.47 ▼8.53 | 50.51 ▼12.58 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.19 | 95.24 ▼6.08 | 44.82 ▼0.37 |
Betting Payback /wp-admin/options-general.php?page=betting_payback_calculator_options | 1,253 | 2.44 | 54.91 | 30.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/betting-payback-calculator/betting-payback-calculator.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: margin, payback percentage, 1x2, odds, payback...
betting-payback-calculator/betting-payback-calculator.php Passed 13 tests
"Betting Payback Calculator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Calculate the theoretical payback percentage for a set of odds
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin306 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 116 | 28 | 300 |
JavaScript | 1 | 2 | 1 | 5 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
PNG images were not found in this plugin