Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲1.82ms] Passed 4 tests
Analyzing server-side resources used by BotCat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 45.00 ▲5.98 |
Dashboard /wp-admin | 3.60 ▲0.30 | 48.39 ▼0.06 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 49.59 ▲1.94 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 100.20 ▲1.66 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 36.62 ▲3.73 |
LINE Notify /wp-admin/admin.php?page=bot-cat-line-notify-admin | 3.43 | 35.57 |
BotCat /wp-admin/admin.php?page=bot-cat | 3.43 | 33.39 |
LINE /wp-admin/admin.php?page=bot-cat-line-admin | 3.43 | 31.71 |
Telegram /wp-admin/admin.php?page=bot-cat-telegram-admin | 3.43 | 34.04 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for BotCat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲114 | 13.32 ▼1.07 | 2.07 ▲0.35 | 43.77 ▼0.69 |
Dashboard /wp-admin | 2,238 ▲50 | 5.86 ▲0.05 | 107.42 ▼9.19 | 37.50 ▼8.97 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.01 ▲0.01 | 39.93 ▲1.83 | 35.57 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,574 ▲55 | 23.11 ▼0.16 | 656.08 ▼21.51 | 57.20 ▲2.67 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.17 ▼0.04 | 95.18 ▼2.80 | 42.61 ▼2.86 |
LINE Notify /wp-admin/admin.php?page=bot-cat-line-notify-admin | 1,008 | 2.05 | 25.57 | 27.81 |
BotCat /wp-admin/admin.php?page=bot-cat | 860 | 2.03 | 28.41 | 27.85 |
LINE /wp-admin/admin.php?page=bot-cat-line-admin | 1,034 | 2.02 | 22.14 | 26.05 |
Telegram /wp-admin/admin.php?page=bot-cat-telegram-admin | 1,033 | 2.04 | 24.00 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bot-cat/bot-cat.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in bot-cat/assets to your readme.txt
bot-cat/bot-cat.php 85% from 13 tests
The primary PHP file in "BotCat" version 1.1.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "5.2")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,278 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 279 | 265 | 1,278 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin