Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.06ms] Passed 4 tests
This is a short check of server-side resources used by JaspreetChahal's wordpress bot detector lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.74 ▼0.40 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.32 ▼17.30 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.07 ▼0.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.14 ▼18.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.76 ▲1.30 |
Manage Bots /wp-admin/admin.php?page=jcorgbotdetect-sub | 3.22 | 33.18 |
Live View /wp-admin/admin.php?page=jcorgbotdetect-live | 3.22 | 32.62 |
JC Bot Detector /wp-admin/admin.php?page=jcorgbotdetect | 3.19 | 29.78 |
History Report /wp-admin/admin.php?page=jcorgbotdetect-rep | 3.22 | 31.93 |
Add/Edit Bot /wp-admin/admin.php?page=jcorgbotdetect-add | 3.19 | 31.49 |
Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_jcorgbothistory |
wp_jcorgbotinfo |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
jcorgbotdetector_email_interval |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
jcorgbotdetector_last_email_sent |
jcorgbotdetector_email_format |
jcorgbotdetector_email |
jcorgbotdetector_db_version |
... |
Browser metrics Passed 4 tests
JaspreetChahal's wordpress bot detector lite: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.28 ▼0.07 | 1.70 ▼0.28 | 45.98 ▲2.78 |
Dashboard /wp-admin | 2,223 ▲43 | 5.56 ▼0.04 | 89.08 ▼2.26 | 72.00 ▲30.31 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.01 ▼0.00 | 35.38 ▼0.62 | 36.24 ▲3.70 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.37 ▲0.36 | 763.29 ▲103.76 | 50.30 ▼4.89 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.19 ▼0.00 | 98.52 ▼12.46 | 72.97 ▲27.55 |
Manage Bots /wp-admin/admin.php?page=jcorgbotdetect-sub | 818 | 2.00 | 26.30 | 30.14 |
Live View /wp-admin/admin.php?page=jcorgbotdetect-live | 807 | 2.18 | 25.79 | 28.36 |
JC Bot Detector /wp-admin/admin.php?page=jcorgbotdetect | 990 | 2.04 | 23.66 | 33.71 |
History Report /wp-admin/admin.php?page=jcorgbotdetect-rep | 822 | 2.00 | 22.31 | 28.60 |
Add/Edit Bot /wp-admin/admin.php?page=jcorgbotdetect-add | 821 | 2.00 | 22.95 | 26.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_jcorgbotinfo
- wp_jcorgbothistory
- The uninstall procedure has failed, leaving 12 options in the database
- db_upgraded
- jcorgbotdetector_history_to_keep
- widget_recent-posts
- widget_theysaidso_widget
- jcorgbotdetector_email_interval
- theysaidso_admin_options
- jcorgbotdetector_db_version
- jcorgbotdetector_last_email_sent
- widget_recent-comments
- jcorgbotdetector_email
- ...
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=jcorgbotdetect
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=jcorgbotdetect
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=jcorgbotdetect-add
- > Notice in wp-content/plugins/jaspreetchahals-wordpress-bot-detector-lite/jaspreetchahals-wordpress-bot-detector-lite.php+241
Undefined index: action
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/jaspreetchahals-wordpress-bot-detector-lite/jaspreetchahals-wordpress-bot-detector-lite.php on line 28
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/jaspreetchahals-wordpress-bot-detector-lite/jaspreetchahals-wordpress-bot-detector-lite.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/jaspreetchahals-wordpress-bot-detector-lite/jaspreetchahals-wordpress-bot-detector-lite.php:33
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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 need to be fixed:
- Screenshots: Screenshot #1 (A screen shot of the options page) image missing
- Plugin Name: You should set the name of your plugin on the first line (
=== jaspreetchahals-wordpress-bot-detector-lite ===
) - Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
jaspreetchahals-wordpress-bot-detector-lite/jaspreetchahals-wordpress-bot-detector-lite.php Passed 13 tests
The primary PHP file in "JaspreetChahal's wordpress bot detector lite" version 1.0 is used by WordPress to initiate all plugin functionality
102 characters long description:
This plugin does what the title says. It identifies Bots and send you an email about the bot activity.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected364 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 18 | 352 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
16 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/warning.png | 1.32KB | 1.33KB | 0.00% |
images/new.png | 1.06KB | 1.12KB | 0.00% |
images/information.png | 1.44KB | 1.45KB | 0.00% |
images/star_grey.png | 0.74KB | 0.67KB | ▼ 9.80% |
images/star_red.png | 0.73KB | 0.67KB | ▼ 8.17% |