Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼32.19ms] Passed 4 tests
This is a short check of server-side resources used by SpotBot
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.24 ▼4.16 |
Dashboard /wp-admin | 3.05 ▼0.26 | 26.46 ▼25.06 |
Posts /wp-admin/edit.php | 3.05 ▼0.31 | 24.35 ▼25.67 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.84 | 25.56 ▼70.24 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 26.59 ▼7.77 |
SpotBot /wp-admin/admin.php?page=sb_list | 3.05 | 26.31 |
Settings /wp-admin/admin.php?page=sb_config | 3.05 | 23.59 |
FAQ /wp-admin/admin.php?page=sb_faq | 3.05 | 27.03 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_spotbot_config |
wp_spotbot_meta |
New WordPress options |
---|
db_upgraded |
spotbot_version |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SpotBot
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.25 ▼1.38 | 1.66 ▼0.06 | 42.76 ▼0.77 |
Dashboard /wp-admin | 2,248 ▲63 | 5.86 ▲0.00 | 100.61 ▼0.34 | 67.66 ▲25.40 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.14 ▲0.15 | 40.98 ▲1.61 | 35.42 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 18.40 ▲0.02 | 721.66 ▲114.01 | 61.24 ▲13.73 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.21 ▲0.06 | 105.85 ▲4.60 | 44.37 ▲1.41 |
SpotBot /wp-admin/admin.php?page=sb_list | 972 | 2.06 | 25.87 | 24.13 |
Settings /wp-admin/admin.php?page=sb_config | 1,645 | 6.98 | 136.62 | 107.38 |
FAQ /wp-admin/admin.php?page=sb_faq | 1,072 | 2.12 | 28.16 | 39.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/spotbot/sb_init.php+191
Trying to access array offset on value of type null
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- spotbot_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb_faq
- > Notice in wp-content/plugins/spotbot/sb_init.php+251
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=sb_config
- > Notice in wp-content/plugins/spotbot/sb_init.php+386
Trying to get property 'spot_active' of non-object
- > GET request to /wp-admin/admin.php?page=sb_config
- > Notice in wp-content/plugins/spotbot/sb_init.php+394
Trying to get property 'spot_cleanup' of non-object
- > GET request to /wp-admin/admin.php?page=sb_config
- > Notice in wp-content/plugins/spotbot/sb_init.php+402
Trying to get property 'spot_cleantime' of non-object
- > GET request to /wp-admin/admin.php?page=sb_config
- > Notice in wp-content/plugins/spotbot/sb_init.php+410
Trying to get property 'spot_key' of non-object
- > GET request to /wp-admin/admin.php?page=sb_config
- > Notice in wp-content/plugins/spotbot/sb_init.php+423
Trying to get property 'spot_warning_html' of non-object
- > GET request to /wp-admin/admin.php?page=sb_config
- > User deprecated in wp-includes/functions.php+5453
Function the_editor is deprecated since version 3.3.0! Use wp_editor() instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb_faq
- > Notice in wp-content/plugins/spotbot/sb_init.php+715
Undefined index: tab
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/spotbot/sb_init.php:17
- > PHP Notice
Undefined index: url in wp-content/plugins/spotbot/check_bot.php on line 13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb_config
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: SB(...).rwdImageMaps is not a function" "TypeError: SB(...).rwdImageMaps is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/spotbot/js/js_sb_func.js?ver=6.3.1:228:23)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb_config
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: SB(...).rwdImageMaps is not a function
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb_faq
- > Network (severe)
wp-content/plugins/spotbot/images/faq/list_anatomy.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb_faq
- > Network (severe)
wp-content/plugins/spotbot/images/faq/config_anatomy.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: spam, login, comments, bots
spotbot/sb_init.php 85% from 13 tests
Analyzing the main PHP file in "SpotBot" version 0.1.8
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 361 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("spotbot.php" instead of "sb_init.php")
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
Success! There were no dangerous files found in this plugin784 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 201 | 222 | 632 |
JavaScript | 2 | 47 | 73 | 142 |
CSS | 1 | 2 | 11 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 6.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 12 | 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
5 PNG files occupy 0.40MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/spotbotmini.png | 51.01KB | 0.79KB | ▼ 98.46% |
images/refresh.png | 2.22KB | 1.69KB | ▼ 23.71% |
images/faq/list-anatomy.png | 142.08KB | 20.04KB | ▼ 85.90% |
images/faq/config-anatomy.png | 150.72KB | 20.91KB | ▼ 86.13% |
images/spotbot.png | 64.10KB | 3.97KB | ▼ 93.81% |