Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.11ms] Passed 4 tests
Analyzing server-side resources used by Staffing Engine - Chatbot
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.46 ▲1.02 |
Dashboard /wp-admin | 3.41 ▲0.10 | 55.09 ▲8.89 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.98 ▲5.80 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.73 ▼16.19 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.96 ▲0.94 |
Staffing Engine /wp-admin/options-general.php?page=staffing_engine_chatbot | 3.31 | 37.15 |
Server storage [IO: ▲2.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Staffing Engine - Chatbot
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲209 | 14.82 ▲0.44 | 1.71 ▲0.09 | 37.71 ▼0.76 |
Dashboard /wp-admin | 2,350 ▲165 | 6.43 ▲1.49 | 132.52 ▲17.78 | 40.36 ▼2.04 |
Posts /wp-admin/edit.php | 2,259 ▲170 | 3.35 ▲1.31 | 52.98 ▲13.93 | 31.41 ▼4.24 |
Add New Post /wp-admin/post-new.php | 1,520 ▼10 | 17.79 ▼0.62 | 579.03 ▼26.92 | 34.16 ▼19.70 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▲0.02 | 79.67 ▼20.21 | 39.85 ▼0.98 |
Staffing Engine /wp-admin/options-general.php?page=staffing_engine_chatbot | 1,435 | 3.16 | 41.09 | 31.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Contributors: The plugin contributors field is not present
staffing-engine-chatbot/staffing-engine-chatbot.php Passed 13 tests
The primary PHP file in "Staffing Engine - Chatbot" version 0.9.4 is used by WordPress to initiate all plugin functionality
69 characters long description:
Provides the setting page and inserts the chatbot code into the site.
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 plugin1,554 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 242 | 731 | 1,384 |
JavaScript | 3 | 2 | 272 | 134 |
SVG | 1 | 0 | 0 | 33 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 3 | 75.00% |
Methods | 66 | |
▷ Static methods | 6 | 9.09% |
▷ Public methods | 34 | 51.52% |
▷ Protected methods | 10 | 15.15% |
▷ Private methods | 22 | 33.33% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/staffing-engine-chatbot_default.png | 24.45KB | 14.26KB | ▼ 41.69% |