Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/leaderboard-lite/admin/ajax/event-competitors.php+5
Undefined variable: wpdb
Server metrics [RAM: ▲0.62MB] [CPU: ▲8.87ms] Passed 4 tests
This is a short check of server-side resources used by LeaderBoard Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.78 | 54.88 ▲11.25 |
Dashboard /wp-admin | 3.96 ▲0.65 | 57.48 ▲6.98 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 56.41 ▲11.24 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 108.39 ▲11.84 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 41.72 ▲6.00 |
Scores /wp-admin/admin.php?page=event_scores | 3.81 | 49.04 |
Categories /wp-admin/edit-tags.php?taxonomy=article_cats&post_type=lbd_article | 3.82 | 43.10 |
Add New /wp-admin/post-new.php?post_type=lbd_article | 4.00 | 58.64 |
Event LB /wp-admin/admin.php?page=event_leaderboard | 3.79 | 39.07 |
Workouts /wp-admin/admin.php?page=event_workouts | 3.83 | 44.21 |
All Articles /wp-admin/edit.php?post_type=lbd_article | 3.87 | 49.83 |
Divisions /wp-admin/admin.php?page=event_divisions | 3.79 | 42.73 |
Competitions /wp-admin/admin.php?page=event_competitions | 3.83 | 45.29 |
Events /wp-admin/admin.php?page=event_events | 3.84 | 39.48 |
Competitors /wp-admin/admin.php?page=event_competitors | 3.81 | 36.01 |
Server storage [IO: ▲5.37MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 410 new files
Database: 8 new tables, 15 new options
New tables |
---|
wp_lbd_event_registration_transaction |
wp_lbd_event_scores |
wp_lbd_event_divisions |
wp_lbd_event_registeredEvents |
wp_lbd_event_participants |
wp_lbd_event_workouts |
wp_lbd_event_competitions |
wp_lbd_event_events |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
LeaderBoard_eventspage |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
LBD_db_version |
widget_recent-comments |
LeaderBoard_Payment |
LeaderBoard_eventMyAccount |
... |
Browser metrics Passed 4 tests
Checking browser requirements for LeaderBoard Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,471 ▲685 | 19.58 ▲5.20 | 224.05 ▲222.14 | 48.12 ▲6.08 |
Dashboard /wp-admin | 2,443 ▲272 | 6.45 ▲0.87 | 110.25 ▲17.22 | 37.04 ▼4.42 |
Posts /wp-admin/edit.php | 2,384 ▲287 | 4.00 ▲1.97 | 52.40 ▲15.27 | 35.48 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,624 ▲96 | 23.50 ▼0.12 | 664.63 ▼10.23 | 45.93 ▼18.80 |
Media Library /wp-admin/upload.php | 1,518 ▲118 | 4.56 ▲0.33 | 83.06 ▼30.20 | 44.55 ▼2.52 |
Scores /wp-admin/admin.php?page=event_scores | 1,265 | 3.61 | 47.81 | 41.92 |
Categories /wp-admin/edit-tags.php?taxonomy=article_cats&post_type=lbd_article | 1,558 | 3.59 | 44.13 | 27.14 |
Add New /wp-admin/post-new.php?post_type=lbd_article | 2,800 | 8.01 | 172.05 | 57.87 |
Event LB /wp-admin/admin.php?page=event_leaderboard | 1,095 | 3.48 | 42.52 | 23.25 |
Workouts /wp-admin/admin.php?page=event_workouts | 1,727 | 6.98 | 123.63 | 36.50 |
All Articles /wp-admin/edit.php?post_type=lbd_article | 1,404 | 3.72 | 45.25 | 26.85 |
Divisions /wp-admin/admin.php?page=event_divisions | 1,189 | 3.61 | 46.47 | 27.52 |
Competitions /wp-admin/admin.php?page=event_competitions | 1,688 | 6.99 | 126.13 | 36.18 |
Events /wp-admin/admin.php?page=event_events | 3,526 | 6.99 | 126.98 | 39.44 |
Competitors /wp-admin/admin.php?page=event_competitors | 1,355 | 3.66 | 45.48 | 22.59 |
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
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- LBD_db_version
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=event_competitors
- > Notice in wp-content/plugins/leaderboard-lite/admin/pages/event-competitors.php+123
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/leaderboard-lite/Stripe/stripe-php/tests/bootstrap.php
- > /wp-content/plugins/leaderboard-lite/Stripe/stripe-php/update_certs.php
- > /wp-content/plugins/leaderboard-lite/front-end/stripe-php/update_certs.php
- > /wp-content/plugins/leaderboard-lite/Stripe/container.php
- > /wp-content/plugins/leaderboard-lite/front-end/stripe-php/build.php
- > /wp-content/plugins/leaderboard-lite/Stripe/stripe-php/tests/bootstrap.no_autoload.php
- > /wp-content/plugins/leaderboard-lite/Stripe/stripe-php/build.php
- 182× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/leaderboard-lite/front-end/stripe-php/lib/Collection.php:15
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/leaderboard-lite/front-end/stripe-php/lib/SKU.php:25
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/leaderboard-lite/Stripe/stripe-php/tests/Stripe/ProductTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/leaderboard-lite/Stripe/stripe-php/tests/Stripe/Util/RequestOptionsTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/leaderboard-lite/Stripe/stripe-php/lib/AlipayAccount.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/leaderboard-lite/Stripe/stripe-php/tests/Stripe/BalanceTransactionTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/leaderboard-lite/Stripe/stripe-php/tests/Stripe/TransferReversalTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/leaderboard-lite/Stripe/stripe-php/lib/ThreeDSecure.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/leaderboard-lite/Stripe/stripe-php/lib/RecipientTransfer.php:35
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/leaderboard-lite/front-end/stripe-php/lib/Source.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=event_competitors
- > Network (severe)
wp-admin/admin-ajax.php?ver=26.12.18 - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Donate link: Invalid URI found ("#")
leaderboard-lite/init.php 85% from 13 tests
The main PHP file in "LeaderBoard Plugin" ver. 1.24 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("leaderboard-lite.php" instead of "init.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/leaderboard-lite/front-end/stripe-php/data/ca-certificates.crt
- ☣ wp-content/plugins/leaderboard-lite/Stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 183 | 1,387 | 2,360 | 12,590 |
JavaScript | 9 | 48 | 142 | 2,692 |
CSS | 5 | 156 | 90 | 1,982 |
SVG | 1 | 0 | 0 | 655 |
Markdown | 3 | 209 | 0 | 475 |
JSON | 1 | 0 | 0 | 36 |
YAML | 2 | 7 | 1 | 36 |
XML | 2 | 0 | 0 | 30 |
SQL | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 4 | |
Traits | 14 | |
Classes | 201 | |
▷ Abstract classes | 14 | 6.97% |
▷ Concrete classes | 187 | 93.03% |
▷ Final classes | 0 | 0.00% |
Methods | 860 | |
▷ Static methods | 229 | 26.63% |
▷ Public methods | 784 | 91.16% |
▷ Protected methods | 30 | 3.49% |
▷ Private methods | 46 | 5.35% |
Functions | 87 | |
▷ Named functions | 79 | 90.80% |
▷ Anonymous functions | 8 | 9.20% |
Constants | 291 | |
▷ Global constants | 7 | 2.41% |
▷ Class constants | 284 | 97.59% |
▷ Public constants | 284 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
40 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/list-icon-6.png | 11.37KB | 4.30KB | ▼ 62.18% |
img/username.png | 1.05KB | 0.25KB | ▼ 76.46% |
front-end/img/list-icon-3.png | 7.14KB | 3.31KB | ▼ 53.60% |
img/text.png | 14.20KB | 6.77KB | ▼ 52.35% |
front-end/img/list-icon-2.png | 6.95KB | 3.13KB | ▼ 54.88% |