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
Installer ran successfully
Server metrics [RAM: ▲0.83MB] [CPU: ▲0.85ms] Passed 4 tests
An overview of server-side resources used by Live2DWebCanvas
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.76 | 45.51 ▲1.38 |
Dashboard /wp-admin | 4.17 ▲0.86 | 53.96 ▲1.03 |
Posts /wp-admin/edit.php | 4.22 ▲0.86 | 48.42 ▲3.45 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.87 | 93.57 ▼2.47 |
Media Library /wp-admin/upload.php | 4.09 ▲0.86 | 42.28 ▲5.96 |
Live 2D Settings /wp-admin/options-general.php?page=live-2d-options | 4.00 | 37.66 |
Server storage [IO: ▲3.71MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
live_2d_advanced_option_name |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
live_2d_settings_option_name |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Live2DWebCanvas
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲208 | 17.15 ▲2.78 | 155.69 ▲153.69 | 79.32 ▲36.10 |
Dashboard /wp-admin | 2,226 ▲38 | 5.86 ▼0.17 | 114.39 ▼4.43 | 47.61 ▲2.68 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.06 ▲0.04 | 36.45 ▼1.34 | 38.62 ▲4.33 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 23.28 ▼0.14 | 682.05 ▲72.17 | 55.02 ▲8.30 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.19 ▼0.13 | 101.52 ▼9.00 | 46.65 ▼0.28 |
Live 2D Settings /wp-admin/options-general.php?page=live-2d-options | 3,620 | 3.98 | 124.55 | 144.57 |
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: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/live-2d/src/live2d-SDK.php on line 2
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: moe, 2d, comic, anime, chatgpt...
live-2d/wordpress-live2d.php 92% from 13 tests
The primary PHP file in "Live2DWebCanvas" version 1.9.11 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("live-2d.php" instead of "wordpress-live2d.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected16,572 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 5,756 | 94 | 12,978 |
PHP | 20 | 392 | 521 | 2,960 |
PO File | 2 | 206 | 352 | 470 |
Markdown | 1 | 37 | 0 | 158 |
JavaScript | 6 | 0 | 12 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 26 | 17.93% |
▷ Public methods | 126 | 86.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 13.10% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 13 | |
▷ Global constants | 5 | 38.46% |
▷ Class constants | 8 | 61.54% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin