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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.72ms] Passed 4 tests
A check of server-side resources used by XnBot Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 45.43 ▲1.02 |
Dashboard /wp-admin | 3.41 ▲0.06 | 76.92 ▲1.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.27 ▼7.99 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.71 ▼1.12 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.95 ▲1.21 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XnBot Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.23 ▲0.12 | 1.66 ▼0.34 | 44.99 ▼7.21 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▼0.09 | 94.62 ▼7.56 | 71.86 ▲25.09 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 1.97 ▼0.06 | 39.19 ▲2.67 | 34.34 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 21.10 ▼2.06 | 709.60 ▲28.55 | 43.91 ▼11.42 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.14 ▼0.10 | 114.84 ▲17.34 | 82.76 ▲40.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: status in wp-content/plugins/xnbot/frontend/view/settings.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/xnbot/index.php:26
- > PHP Notice
Trying to get property 'current_recycle_interactions' of non-object in wp-content/plugins/xnbot/frontend/view/settings.php on line 56
- > PHP Notice
Undefined variable: interactions in wp-content/plugins/xnbot/frontend/view/settings.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/xnbot/backend/controller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/xnbot/frontend/view/get_started.php:8
- > PHP Notice
Undefined variable: status in wp-content/plugins/xnbot/frontend/view/settings.php on line 24
- > PHP Notice
Undefined variable: access_api_key in wp-content/plugins/xnbot/frontend/view/settings.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/xnbot/frontend/view/settings.php:65
- > PHP Notice
Trying to get property 'current_interactions' of non-object in wp-content/plugins/xnbot/frontend/view/settings.php on line 56
- > PHP Notice
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Stable tag: Empty string
xnbot/index.php 92% from 13 tests
Analyzing the main PHP file in "XnBot Plugin" version 1.0
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("xnbot.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,665 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 20 | 31 | 7,467 |
JavaScript | 5 | 582 | 204 | 1,614 |
PHP | 5 | 71 | 47 | 296 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
Analyzing 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.44 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 1.17KB | 0.82KB | ▼ 29.68% |
assets/images/module_bg.png | 22.05KB | 9.65KB | ▼ 56.24% |
assets/images/logo_100.png | 8.02KB | 3.46KB | ▼ 56.80% |
assets/images/red_bg.png | 2.13KB | 1.70KB | ▼ 20.22% |