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.15MB] [CPU: ▼154.12ms] Passed 4 tests
Analyzing server-side resources used by CHATPLUSJP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 47.89 ▲14.05 |
Dashboard /wp-admin | 2.99 ▼0.07 | 30.30 ▼13.97 |
Posts /wp-admin/edit.php | 3.04 ▼0.07 | 30.85 ▼20.07 |
Add New Post /wp-admin/post-new.php | 4.99 ▼0.44 | 74.20 ▼579.81 |
Media Library /wp-admin/upload.php | 2.99 ▼0.01 | 29.94 ▼2.64 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cpj_system_setting |
Browser metrics Passed 4 tests
Checking browser requirements for CHATPLUSJP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,917 ▲321 | 17.13 ▲1.54 | 19.38 ▲8.58 | 50.06 ▲2.61 |
Dashboard /wp-admin | 2,981 ▲50 | 5.91 ▼0.01 | 169.84 ▲14.03 | 121.79 ▲15.77 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.72 ▲0.00 | 68.89 ▼8.09 | 85.00 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,693 ▲10 | 18.73 ▼0.01 | 377.80 ▼29.24 | 106.08 ▼1.63 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.03 ▲0.01 | 151.38 ▲0.98 | 114.84 ▲0.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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- cpj_system_setting
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > 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/chatplusjp/chatplusjp.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/chatplusjp/chatplusjp.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/chatplusjp/admin/views/system-setting.php:2
- > PHP Fatal error
Uncaught Error: Class 'CHATPLUSJP_Admin_Page' not found in wp-content/plugins/chatplusjp/admin/class-admin-setting.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: chat, chatplus
chatplusjp/chatplusjp.php Passed 13 tests
The principal PHP file in "CHATPLUSJP" v. 1.0.2 is loaded by WordPress automatically on each request
35 characters long description:
This plugin add chatplus your page.
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
Success! There were no dangerous files found in this plugin460 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 132 | 183 | 445 |
CSS | 2 | 3 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin