Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/chokelive-bottracker/widgets/cb_widgets.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; CBWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.20ms] Passed 4 tests
This is a short check of server-side resources used by ChokeLive BotTracker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.76 ▼35.45 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.23 ▼47.40 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.65 ▼42.87 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.62 ▼83.08 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.45 ▼30.40 |
Chokelive Bottracker /wp-admin/options-general.php?page=chokelive_bottrack | 2.09 | 5.74 |
Server storage [IO: ▲0.04MB] [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: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_cbwidget |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ChokeLive BotTracker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▲0.01 | 1.88 ▲0.20 | 43.20 ▲0.46 |
Dashboard /wp-admin | 2,199 ▲25 | 5.63 ▲0.05 | 97.81 ▲8.74 | 41.74 ▼1.84 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.07 | 39.38 ▼1.86 | 36.17 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.14 ▼0.52 | 648.69 ▼16.07 | 53.02 ▲3.09 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.01 | 100.63 ▼5.54 | 44.32 ▼1.64 |
Chokelive Bottracker /wp-admin/options-general.php?page=chokelive_bottrack | 697 | 1.12 | 6.89 | 18.10 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/chokelive-bottracker/widgets/cb_widgets.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; CBWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_cbwidget
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=chokelive_bottrack
- > Deprecated in wp-content/plugins/chokelive-bottracker/widgets/cb_widgets.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; CBWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=chokelive_bottrack
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/chokelive-bottracker/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/chokelive-bottracker/templates/settings.php(5): do_settings_fields()
#1 wp-content/plugins/chokelive-bottracker/settings.php(103): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): chokelive_bottrack_settings->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/chokelive-bottracker/widgets/cb_widgets.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/chokelive-bottracker/chokelive-bottracker.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/chokelive-bottracker/templates/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== chokelive-bottracker ===
) - Screenshots: These screenshots do not have images: #1 (screenshot-1.gif is the Bot-Tracking on the front of wordpress web.), #2 (screenshot-2.gif is the 'Chokelive-Bottracker' Option on the 'Admin > Settings > Chokelive-Bottracker' page.), #3 (screenshot-3.gif is the 'Chokelive-Bottracker Widgets' screen on the 'Appearance > Widgets' page.)
chokelive-bottracker/chokelive-bottracker.php Passed 13 tests
"ChokeLive BotTracker" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
This pulgin is using for tracking the history of Bot that ever visited to your blog site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected154 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 66 | 81 | 154 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin