Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.92ms] Passed 4 tests
This is a short check of server-side resources used by No Japanese Comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.67 ▼2.85 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.81 ▲0.94 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.35 ▲4.35 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.13 ▼23.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 35.48 ▲1.27 |
No Japanese Comments /wp-admin/options-general.php?page=no-japanese-comments-options | 3.22 | 31.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
no_japanese_comments_notice |
theysaidso_admin_options |
no_japanese_comments_mode |
Browser metrics Passed 4 tests
No Japanese Comments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.75 ▲0.46 | 1.89 ▲0.19 | 40.22 ▲0.85 |
Dashboard /wp-admin | 2,210 ▲21 | 5.84 ▲0.88 | 107.11 ▼6.72 | 37.32 ▼7.43 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▲0.02 | 35.85 ▼1.23 | 35.19 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.58 ▼5.86 | 662.71 ▼10.35 | 46.32 ▼7.82 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.03 | 93.53 ▼7.01 | 41.49 ▼2.07 |
No Japanese Comments /wp-admin/options-general.php?page=no-japanese-comments-options | 822 | 2.03 | 23.42 | 39.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- widget_recent-posts
- no_japanese_comments_mode
- theysaidso_admin_options
- no_japanese_comments_notice
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-japanese-comments/options.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/no-japanese-comments/no-japanese-comments.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
2 plugin tags: comments, no spam
no-japanese-comments/no-japanese-comments.php Passed 13 tests
The main file in "No Japanese Comments" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Disallow Japanese Language Comments in Your Blog. 在你的部落格中禁止日文評論
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin155 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 25 | 85 |
PO File | 2 | 46 | 74 | 70 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin