Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.24MB] [CPU: ▼41.86ms] Passed 4 tests
A check of server-side resources used by No Chinese Simplified Visit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 14.02 ▼30.58 |
Dashboard /wp-admin | 2.77 ▼0.54 | 15.86 ▼33.49 |
Posts /wp-admin/edit.php | 2.77 ▼0.59 | 15.85 ▼34.25 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.12 | 16.31 ▼69.13 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 14.85 ▼19.43 |
No Chinese Simplified Visit /wp-admin/options-general.php?page=no-chinese-simplified-visit-options | 2.77 | 15.28 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
no_chinese_simplified_visit_notice |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for No Chinese Simplified Visit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.19 ▼1.19 | 2.06 ▼0.09 | 54.71 ▲8.08 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼0.22 | 107.81 ▼6.54 | 40.77 ▼2.30 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 39.72 ▲5.97 | 35.25 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,526 ▲12 | 23.15 ▲5.69 | 660.18 ▼10.63 | 66.06 ▲13.34 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.01 | 97.74 ▼8.42 | 45.04 ▲0.14 |
No Chinese Simplified Visit /wp-admin/options-general.php?page=no-chinese-simplified-visit-options | 1,499 | 6.76 | 168.55 | 110.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/no-chinese-simplified-visit/no-chinese-simplified-visit.php+54
Undefined index: HTTP_ACCEPT_LANGUAGE
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- no_chinese_simplified_visit_notice
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=no-chinese-simplified-visit-options
- > Notice in wp-content/plugins/no-chinese-simplified-visit/no-chinese-simplified-visit.php+54
Undefined index: HTTP_ACCEPT_LANGUAGE
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 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-chinese-simplified-visit/options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/no-chinese-simplified-visit/no-chinese-simplified-visit.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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: no spam, visitor
no-chinese-simplified-visit/no-chinese-simplified-visit.php Passed 13 tests
The main PHP script in "No Chinese Simplified Visit" version 1.1.2 is automatically included on every request by WordPress
99 characters long description:
Disallow Chinese Simplified Visitors in Your Blog. 在你的部落格中禁止簡體中文的訪客
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin111 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 25 | 57 |
PO File | 2 | 12 | 22 | 54 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin