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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.56ms] Passed 4 tests
This is a short check of server-side resources used by No English Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.91 ▲1.52 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.10 ▼6.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.03 ▼7.59 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.64 ▼10.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.11 ▲1.55 |
No English Comments /wp-admin/options-general.php?page=no-english-comments-options | 3.22 | 36.47 |
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 |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
no_english_comments_notice |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
no_english_comments_mode |
Browser metrics Passed 4 tests
Checking browser requirements for No English Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.11 | 2.29 ▲0.45 | 45.85 ▲0.45 |
Dashboard /wp-admin | 2,196 ▲19 | 5.55 ▼0.13 | 91.63 ▼8.05 | 40.41 ▼10.79 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.02 | 35.73 ▼0.65 | 33.74 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.52 ▲0.48 | 690.66 ▲27.04 | 50.19 ▼13.83 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▼0.03 | 107.66 ▲2.79 | 47.92 ▲1.74 |
No English Comments /wp-admin/options-general.php?page=no-english-comments-options | 833 | 1.99 | 26.38 | 29.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- no_english_comments_mode
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- no_english_comments_notice
Smoke tests 75% from 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 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/no-english-comments/no-english-comments.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-english-comments/options.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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: comments, no spam
no-english-comments/no-english-comments.php Passed 13 tests
The main file in "No English Comments" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Disallow English Comments in Your Blog. 在你的部落格中禁止英文評論
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin154 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 25 | 84 |
PO File | 2 | 18 | 18 | 70 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin