Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼43.64ms] Passed 4 tests
This is a short check of server-side resources used by Filp & Win
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.14 ▼0.32 | 16.97 ▼26.68 |
Dashboard /wp-admin | 3.18 ▼0.12 | 18.11 ▼33.35 |
Posts /wp-admin/edit.php | 3.18 ▼0.18 | 18.23 ▼31.27 |
Add New Post /wp-admin/post-new.php | 3.18 ▼2.71 | 17.97 ▼83.26 |
Media Library /wp-admin/upload.php | 3.18 ▼0.05 | 18.17 ▼16.69 |
All Cards /wp-admin/edit.php?post_type=couponcode | 3.18 | 17.19 |
Settings /wp-admin/edit.php?post_type=couponcode&page=flip_and_win_setting | 3.18 | 17.32 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
coupon_code_option |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Filp & Win
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,060 ▲325 | 15.44 ▲1.04 | 4.92 ▲2.96 | 39.94 ▼6.88 |
Dashboard /wp-admin | 2,380 ▲195 | 6.49 ▲1.54 | 117.02 ▼4.10 | 41.31 ▼4.67 |
Posts /wp-admin/edit.php | 2,286 ▲200 | 3.42 ▲1.41 | 54.22 ▲20.65 | 37.53 ▲3.13 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 17.98 ▼4.87 | 595.88 ▼62.61 | 34.18 ▼30.11 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.22 ▲0.01 | 81.88 ▼38.20 | 44.39 ▼3.43 |
All Cards /wp-admin/edit.php?post_type=couponcode | 1,262 | 3.43 | 42.41 | 27.80 |
Settings /wp-admin/edit.php?post_type=couponcode&page=flip_and_win_setting | 2,237 | 3.23 | 37.84 | 28.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/flip-and-win/flip-and-win.php+779
Undefined index: faw_lv
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- coupon_code_option
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=couponcode&page=flip_and_win_setting
- > Notice in wp-content/plugins/flip-and-win/flip-and-win.php+1428
Undefined index: faw_lv
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=couponcode&page=flip_and_win_setting
- > Notice in wp-content/plugins/flip-and-win/flip-and-win.php+1445
Undefined index: tab
- > GET request to /wp-admin/edit.php?post_type=couponcode&page=flip_and_win_setting
- > Notice in wp-content/plugins/flip-and-win/flip-and-win.php+1413
Undefined index: d_name
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/flip-and-win/flip-and-win.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: game, flip win, woocommerce
flip-and-win/flip-and-win.php Passed 13 tests
The main file in "Filp & Win" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
12 characters long description:
Flip and Win
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,380 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 311 | 50 | 1,939 |
PHP | 2 | 400 | 52 | 1,896 |
CSS | 4 | 35 | 106 | 545 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 322)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.83 |
Average class complexity | 282.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 545.00 |
Average method complexity | 30.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 322.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/emoji.png | 81.34KB | 24.08KB | ▼ 70.39% |