Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲1.22ms] Passed 4 tests
A check of server-side resources used by Casino Games
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 47.20 ▲4.66 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.95 ▲1.46 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.07 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 92.99 ▼0.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.87 ▲2.44 |
Document /wp-admin/edit.php?post_type=casino_game&page=casino_game_document | 3.27 | 30.61 |
Add New Game /wp-admin/post-new.php?post_type=casino_game | 3.36 | 46.15 |
Casino Games /wp-admin/edit.php?post_type=casino_game | 3.35 | 33.86 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Casino Games
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.15 ▼1.43 | 1.78 ▼0.09 | 38.09 ▼5.92 |
Dashboard /wp-admin | 2,237 ▲63 | 5.90 ▲1.01 | 93.99 ▼24.05 | 39.36 ▼8.27 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▲0.02 | 40.76 ▲1.68 | 36.30 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 17.65 ▼5.41 | 680.43 ▼8.80 | 57.32 ▼6.13 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.23 ▲0.08 | 101.77 ▼4.53 | 46.04 ▼0.51 |
Document /wp-admin/edit.php?post_type=casino_game&page=casino_game_document | 826 | 2.06 | 34.49 | 25.08 |
Add New Game /wp-admin/post-new.php?post_type=casino_game | 1,752 | 3.64 | 60.44 | 31.64 |
Casino Games /wp-admin/edit.php?post_type=casino_game | 1,092 | 2.02 | 30.71 | 30.39 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/casino-games/includes/casino-game-plugin-setup.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2 in casino-games/assets to your readme.txt
casino-games/casino_games.php 92% from 13 tests
The entry point to "Casino Games" version 1.38 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("casino-games.php" instead of "casino_games.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin242 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 161 | 24 | 241 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected