Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/lottery/lottery.php+53
Methods with the same name as their class will not be constructors in a future version of PHP; LotteryWidget has a deprecated constructor
Server metrics [RAM: ▼1.69MB] [CPU: ▼53.83ms] Passed 4 tests
A check of server-side resources used by Lottery Results
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.16 | 5.36 ▼37.55 |
Dashboard /wp-admin | 2.33 ▼1.02 | 6.15 ▼54.06 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 6.78 ▼40.07 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.56 | 6.60 ▼83.64 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 6.07 ▼27.04 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_lotterywidget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lottery Results
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.24 ▼1.13 | 1.78 ▼0.04 | 44.29 ▲0.29 |
Dashboard /wp-admin | 2,203 ▲12 | 5.88 ▲0.02 | 110.05 ▲3.63 | 45.66 ▲3.96 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.17 ▲0.17 | 33.83 ▼2.71 | 35.27 ▲2.39 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 23.19 ▲0.09 | 646.29 ▼17.84 | 60.26 ▲5.86 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.01 | 97.77 ▼0.08 | 43.69 ▲1.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/lottery/lottery.php+53
Methods with the same name as their class will not be constructors in a future version of PHP; LotteryWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_lotterywidget
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lottery/lottery.php:27
- > 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 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (How the widget appears in the Widgets panel), #2 (How the signup form appears in the sidebar of a site using the twentyten theme)
- Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
lottery/lottery.php Passed 13 tests
The main file in "Lottery Results" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Feature daily lottery results on your website from every state in the USA.
Code Analysis Passed 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 plugin712 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 103 | 49 | 560 |
CSS | 2 | 10 | 3 | 152 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 127.00 |
▷ Minimum class complexity | 127.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 7.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin