Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/blackjack-lite/EzOptions.php+480
Methods with the same name as their class will not be constructors in a future version of PHP; EzMiniTab has a deprecated constructor
Server metrics [RAM: ▲0.06MB] [CPU: ▼16.13ms] Passed 4 tests
Analyzing server-side resources used by Blackjack
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.26 ▼7.28 |
Dashboard /wp-admin | 3.41 ▲0.07 | 50.27 ▼24.50 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.18 ▼7.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.34 ▼24.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 36.38 ▲1.13 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Blackjack
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.35 ▼0.02 | 1.88 ▲0.02 | 44.07 ▲1.97 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.11 | 96.29 ▲8.48 | 44.91 ▲2.89 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.00 ▼0.00 | 36.70 ▼3.27 | 34.09 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.63 ▼0.10 | 666.27 ▼16.62 | 51.36 ▼2.72 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.13 ▼0.11 | 99.58 ▼1.15 | 45.30 ▲3.65 |
Blackjack Lite /wp-admin/blackjack-lite.php | 26 | 0.42 | 0.11 | 15.32 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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 | 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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/blackjack-lite/ezDenyLite.php on line 22
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blackjack-lite/ezDenyLite.php on line 22
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/blackjack-lite/ezDenyLite.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/blackjack-lite/EzOptions.php:544
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/blackjack-lite/myPlugins.php:300
- > PHP Warning
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
- > GET request to /wp-admin/blackjack-lite.php
- > Network (severe)
wp-admin/blackjack-lite.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Blackjack Game in the lite version.), #2 (Blackjack Game in the Pro version.)
blackjack-lite/blackjack-lite.php Passed 13 tests
"Blackjack" version 1.90's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
105 characters long description:
Lite Version: Blackjack game. No complicated setup, no server load or submit, just a shortcode on a page!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,947 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 243 | 79 | 1,829 |
JavaScript | 2 | 51 | 134 | 1,117 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 5 | 5.21% |
▷ Public methods | 96 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 82.39KB | 22.28KB | ▼ 72.96% |
screenshot-1.png | 28.29KB | 7.10KB | ▼ 74.89% |
img/ezsupport.png | 3.13KB | 2.01KB | ▼ 35.75% |
images/playing-card-deck.png | 30.02KB | 29.45KB | ▼ 1.87% |
ezpaypal.png | 9.22KB | 3.44KB | ▼ 62.72% |