Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼7.27ms] Passed 4 tests
Analyzing server-side resources used by Japanized for Twenty Twenty-One
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 39.84 ▼2.03 |
Dashboard /wp-admin | 3.52 ▲0.18 | 46.45 ▼14.92 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 46.09 ▲2.53 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 85.92 ▼14.67 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 39.22 ▲4.48 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
jp_for_twentytwentyone_options |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
jp_for_twentytwentyone_customize |
Browser metrics Passed 4 tests
An overview of browser requirements for Japanized for Twenty Twenty-One
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲128 | 13.21 ▼1.53 | 2.79 ▲0.89 | 33.98 ▼12.54 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.05 | 107.77 ▲3.08 | 37.55 ▲1.47 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.04 | 41.25 ▼0.91 | 37.43 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,527 ▼15 | 23.06 ▲4.82 | 647.19 ▲3.09 | 72.24 ▲24.27 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.16 ▼0.03 | 97.24 ▼4.01 | 47.63 ▲3.02 |
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 were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: twentytwentyone, japanese, toc, scroll top, twenty twenty one...
jp-for-twentytwentyone/jp-for-twentytwentyone.php 92% from 13 tests
This is the main PHP file of "Japanized for Twenty Twenty-One" version 1.9.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,985 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 219 | 484 | 1,591 |
CSS | 4 | 30 | 30 | 296 |
JavaScript | 6 | 9 | 9 | 98 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 30.71 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 39 | 82.98% |
▷ Protected methods | 1 | 2.13% |
▷ Private methods | 7 | 14.89% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected