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.11MB] [CPU: ▼20.26ms] Passed 4 tests
Server-side resources used by GoQSmile
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 33.96 ▼2.86 |
Dashboard /wp-admin | 3.27 ▼0.08 | 30.44 ▼30.64 |
Posts /wp-admin/edit.php | 3.33 ▼0.03 | 35.58 ▼14.66 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.37 | 71.12 ▼31.33 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 28.17 ▼4.41 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
gqs_system_setting |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by GoQSmile
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲54 | 13.20 ▼1.55 | 4.27 ▲2.25 | 39.79 ▼1.07 |
Dashboard /wp-admin | 2,214 ▲26 | 4.93 ▲0.01 | 106.10 ▲2.42 | 67.25 ▲21.37 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▼0.00 | 38.07 ▼3.82 | 34.66 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,529 ▼13 | 23.12 ▲4.64 | 726.31 ▲101.79 | 58.98 ▼4.97 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.18 ▼0.08 | 102.44 ▲5.65 | 49.00 ▲5.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- gqs_system_setting
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GOQSMILE_Admin_Page' not found in wp-content/plugins/goqsmile/admin/class-admin-setting.php:2
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/goqsmile/goqsmile.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/goqsmile/admin/views/system-setting.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/goqsmile/goqsmile.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: goqsmile, chatbot, chat
goqsmile/goqsmile.php Passed 13 tests
The main PHP script in "GoQSmile" version 1.0.1 is automatically included on every request by WordPress
86 characters long description:
すぐに使える直感的チャットボット。GoQSmile(ごくースマイル)
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
There were no executable files found in this plugin608 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 134 | 184 | 492 |
CSS | 2 | 3 | 0 | 116 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 10 | 21.28% |
▷ Public methods | 40 | 85.11% |
▷ Protected methods | 1 | 2.13% |
▷ Private methods | 6 | 12.77% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/icon-goqsmile.png | 2.10KB | 0.58KB | ▼ 72.49% |
admin/assets/images/img_complete.png | 64.76KB | 32.25KB | ▼ 50.21% |
admin/assets/images/logo.png | 3.66KB | 1.88KB | ▼ 48.54% |
admin/assets/images/img_capture_01.png | 46.41KB | 16.90KB | ▼ 63.58% |