Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼170.12ms] Passed 4 tests
A check of server-side resources used by WP Poker Tournaments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 34.31 ▲13.92 |
Dashboard /wp-admin | 3.21 ▲0.15 | 45.36 ▼2.85 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 46.31 ▼1.44 |
Add New Post /wp-admin/post-new.php | 5.79 ▲0.35 | 82.91 ▼672.77 |
Media Library /wp-admin/upload.php | 3.16 ▲0.16 | 30.17 ▼3.40 |
WP Pokertournaments /wp-admin/options-general.php?page=wp-pokertournaments | 3.14 | 26.85 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 2 new options
New WordPress options |
---|
pokertournaments_style |
halls_update |
Browser metrics Passed 4 tests
WP Poker Tournaments: 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 / | 3,793 ▲187 | 16.14 ▲0.47 | 12.25 ▲0.31 | 47.23 ▼2.34 |
Dashboard /wp-admin | 2,975 ▲44 | 5.87 ▼0.32 | 141.79 ▼27.12 | 107.86 ▼3.14 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.02 | 69.67 ▼0.79 | 87.18 ▼4.93 |
Add New Post /wp-admin/post-new.php | 1,618 ▼54 | 21.60 ▲2.71 | 291.65 ▼118.55 | 104.36 ▼4.85 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▲0.02 | 164.34 ▲8.83 | 118.92 ▲0.28 |
WP Pokertournaments /wp-admin/options-general.php?page=wp-pokertournaments | 1,320 | 2.33 | 56.13 | 73.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp-pokertournaments
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp-pokertournaments
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-poker-tournaments/shortcodes/shortcodes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-poker-tournaments/views/admin.php:81
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: poker freeroll, affiliate marketing, seo, poker texas holdem, poker...
wp-poker-tournaments/wp-pokertournaments.php 69% from 13 tests
The entry point to "WP Poker Tournaments" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-poker-tournaments.php" instead of "wp-pokertournaments.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 296 characters long)
- Domain Path: The domain path points to an invalid folder, "/wp-pokertournaments" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin821 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 227 | 320 | 543 |
PO File | 2 | 94 | 108 | 220 |
CSS | 1 | 2 | 2 | 48 |
JavaScript | 2 | 7 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 7 | 31.82% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 22.73% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 48.52KB | 16.43KB | ▼ 66.14% |
assets/screenshot-2.png | 59.24KB | 15.19KB | ▼ 74.36% |