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 gracefully, with no errors
Server metrics [RAM: ▲0.67MB] [CPU: ▲1.16ms] Passed 4 tests
Server-side resources used by BetPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 44.05 ▲3.61 |
Dashboard /wp-admin | 4.02 ▲0.71 | 57.75 ▲7.65 |
Posts /wp-admin/edit.php | 4.07 ▲0.71 | 56.68 ▲5.67 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 91.78 ▼10.59 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 44.73 ▲5.93 |
Bettings /wp-admin/admin.php?page=betpress-sports-and-events | 3.90 | 38.27 |
BetPress /wp-admin/admin.php?page=betpress-settings | 3.98 | 38.89 |
PayPal log /wp-admin/admin.php?page=bp-paypal | 3.86 | 39.16 |
Auto insert data /wp-admin/admin.php?page=bp-auto-insert | 3.86 | 43.98 |
Leaderboards /wp-admin/admin.php?page=bp-leaderboards | 3.86 | 35.27 |
Server storage [IO: ▲1.13MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: 8 new tables, 54 new options
New tables |
---|
wp_bp_bet_options |
wp_bp_events |
wp_bp_paypal |
wp_bp_bet_events_cats |
wp_bp_bet_events |
wp_bp_slips |
wp_bp_leaderboards |
wp_bp_sports |
New WordPress options |
---|
bp_featured_button_text_color |
bp_min_stake |
bp_lb_table_text_color |
bp_cat_title_text_color |
bp_paypal_success_message |
bp_slip_subrow_bg_color |
bp_one_win_per_cat |
bp_event_title_bg_color |
bp_db_version |
bp_paypal_txn_ids |
... |
Browser metrics Passed 4 tests
Checking browser requirements for BetPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,051 ▲265 | 13.95 ▼0.78 | 7.21 ▲5.44 | 37.43 ▼7.45 |
Dashboard /wp-admin | 2,317 ▲140 | 5.95 ▲0.29 | 105.78 ▲9.27 | 44.51 ▲5.17 |
Posts /wp-admin/edit.php | 2,177 ▲74 | 2.41 ▲0.37 | 45.66 ▲4.74 | 36.73 ▲3.55 |
Add New Post /wp-admin/post-new.php | 1,589 ▲63 | 23.56 ▲0.32 | 658.02 ▲14.12 | 36.14 ▼28.55 |
Media Library /wp-admin/upload.php | 1,478 ▲78 | 4.57 ▲0.37 | 101.65 ▼2.74 | 44.37 ▼1.30 |
Bettings /wp-admin/admin.php?page=betpress-sports-and-events | 1,123 | 2.12 | 34.55 | 32.53 |
BetPress /wp-admin/admin.php?page=betpress-settings | 4,773 | 3.71 | 155.93 | 28.77 |
PayPal log /wp-admin/admin.php?page=bp-paypal | 961 | 2.10 | 29.49 | 26.43 |
Auto insert data /wp-admin/admin.php?page=bp-auto-insert | 955 | 2.12 | 28.96 | 28.08 |
Leaderboards /wp-admin/admin.php?page=bp-leaderboards | 998 | 2.10 | 32.00 | 28.90 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_betpress_betslip
- theysaidso_admin_options
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
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/betpress/controllers/betpress-activation.php:253
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
betpress/BetPress.php 85% from 13 tests
"BetPress" version 1.0.1 Lite...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0.1 Lite...")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("betpress.php" instead of "BetPress.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
Good job! No executable or dangerous file extensions detected17,144 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 2,197 | 1,752 | 9,784 |
PHP | 54 | 3,271 | 159 | 5,311 |
CSS | 4 | 103 | 35 | 823 |
PO File | 1 | 308 | 358 | 687 |
HTML | 1 | 15 | 4 | 539 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 128 | |
▷ Named functions | 128 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 28 | 100.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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/delete-16.png | 0.43KB | 0.34KB | ▼ 21.90% |
Documentation/assets/images/logo-wa.png | 4.79KB | 2.44KB | ▼ 49.01% |
includes/images/edit-16.png | 0.62KB | 0.58KB | ▼ 6.92% |
Documentation/assets/css/img/warning.png | 0.59KB | 0.50KB | ▼ 14.99% |
includes/images/down-arrow-16.png | 0.28KB | 0.24KB | ▼ 15.97% |