Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼10.51ms] Passed 4 tests
An overview of server-side resources used by Raptive Creatorbot
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 45.71 ▲5.86 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.42 ▼14.57 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.81 ▼1.03 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 81.24 ▼25.61 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.52 ▼0.82 |
Server storage [IO: ▲3.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Raptive Creatorbot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.14 ▼0.21 | 4.12 ▲2.52 | 43.65 ▲4.33 |
Dashboard /wp-admin | 2,202 ▲25 | 5.56 ▼0.08 | 86.83 ▼7.62 | 38.32 ▼6.10 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.03 | 35.63 ▼5.27 | 32.36 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.49 ▲0.18 | 678.49 ▲28.12 | 64.18 ▼7.66 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.21 ▲0.03 | 98.74 ▼4.70 | 46.98 ▲1.07 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/raptive-creatorbot/public/partials/raptive-chatbot-insert-js.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/raptive-creatorbot/public/class-raptive-chatbot-public.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: chatbot, raptive
raptive-creatorbot/raptive-chatbot.php 92% from 13 tests
The primary PHP file in "Raptive Creatorbot" version 1.0.15 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("raptive-creatorbot.php" instead of "raptive-chatbot.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin712 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 129 | 587 | 290 |
JavaScript | 2 | 33 | 61 | 251 |
CSS | 2 | 34 | 9 | 171 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.69% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 3.07MB with 1.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 12.53KB | 4.66KB | ▼ 62.84% |
assets/icon-128x128.png | 2.91KB | 1.22KB | ▼ 58.03% |
assets/screenshot-1.png | 1,464.42KB | 531.30KB | ▼ 63.72% |
assets/icon-256x256.png | 5.98KB | 2.41KB | ▼ 59.70% |
assets/screenshot-3.png | 91.91KB | 42.91KB | ▼ 53.32% |