Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.23MB] [CPU: ▼41.66ms] Passed 4 tests
A check of server-side resources used by No Specific Language Visitors
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 13.81 ▼30.55 |
Dashboard /wp-admin | 2.78 ▼0.52 | 15.88 ▼28.32 |
Posts /wp-admin/edit.php | 2.78 ▼0.57 | 16.74 ▼32.00 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.10 | 15.53 ▼75.78 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 14.53 ▼21.69 |
No Specific Language Visitors /wp-admin/options-general.php?page=no-specific-language-visitors-options | 2.78 | 15.89 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
no_specific_language_visitors_lang |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
no_specific_language_visitors_notice |
Browser metrics Passed 4 tests
A check of browser resources used by No Specific Language Visitors
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,431 ▼330 | 14.31 ▼0.04 | 0.50 ▼1.19 | 0.08 ▼45.35 |
Dashboard /wp-admin | 2,202 ▲22 | 5.57 ▼0.10 | 90.62 ▼0.29 | 40.54 ▲0.56 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.06 | 40.01 ▲4.20 | 36.28 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 22.27 ▲4.27 | 690.60 ▲52.88 | 68.96 ▲10.27 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.17 ▼0.01 | 102.93 ▼1.93 | 50.29 ▲8.22 |
No Specific Language Visitors /wp-admin/options-general.php?page=no-specific-language-visitors-options | 1,527 | 6.41 | 141.01 | 62.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/no-specific-language-visitors/no-specific-language-visitors.php+56
Undefined index: HTTP_ACCEPT_LANGUAGE
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- no_specific_language_visitors_notice
- no_specific_language_visitors_lang
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=no-specific-language-visitors-options
- > Notice in wp-content/plugins/no-specific-language-visitors/no-specific-language-visitors.php+56
Undefined index: HTTP_ACCEPT_LANGUAGE
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=no-specific-language-visitors-options
- > Warning in wp-content/plugins/no-specific-language-visitors/options.php+25
Use of undefined constant LAST_POST_REDIRECT_TEXT_DOMAIN - assumed 'LAST_POST_REDIRECT_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-specific-language-visitors/options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/no-specific-language-visitors/no-specific-language-visitors.php:34
- > PHP Fatal error
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 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: visitor, no spam
no-specific-language-visitors/no-specific-language-visitors.php Passed 13 tests
The entry point to "No Specific Language Visitors" version 1.0.6 is a PHP file that has certain tags in its header comment area
98 characters long description:
Disallow Specific Language Visitors in Your Blog. 在你的部落格中禁止特定語言的訪客
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin140 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 25 | 70 |
PO File | 2 | 16 | 16 | 70 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin