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.07MB] [CPU: ▼5.19ms] Passed 4 tests
This is a short check of server-side resources used by Smartarget Lucky Wheel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 50.05 ▲5.79 |
Dashboard /wp-admin | 3.37 ▲0.07 | 54.94 ▲0.68 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 60.17 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.43 ▼20.40 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.78 ▼1.07 |
Smartarget Lucky Wheel /wp-admin/options-general.php?page=smartarget_lucky_wheel | 3.26 | 36.65 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smartarget Lucky Wheel
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲135 | 20.98 ▲6.58 | 9.37 ▲6.43 | 44.24 ▼7.70 |
Dashboard /wp-admin | 2,199 ▲19 | 10.60 ▲4.93 | 171.93 ▲82.92 | 45.13 ▼5.10 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 7.35 ▲5.39 | 128.22 ▲87.41 | 37.16 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,695 ▲159 | 27.49 ▲9.26 | 735.54 ▲70.12 | 51.68 ▼12.52 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 9.49 ▲5.29 | 194.53 ▲83.23 | 44.52 ▼2.55 |
Smartarget Lucky Wheel /wp-admin/options-general.php?page=smartarget_lucky_wheel | 2,972 | 8.13 | 254.09 | 148.64 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smartarget-lucky-wheel/public/partials/smartarget-lucky-wheel-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-lucky-wheel/admin/partials/smartarget-lucky-wheel-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: discount, voucher wheel, lucky wheel, voucher, vouchers...
smartarget-lucky-wheel/smartarget-lucky-wheel.php 92% from 13 tests
The primary PHP file in "Smartarget Lucky Wheel" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin423 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 130 | 522 | 225 |
JavaScript | 3 | 5 | 1,390 | 198 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin