68% no-specific-language-visitors

Code Review | No Specific Language Visitors

WordPress plugin No Specific Language Visitors scored68%from 54 tests.

About plugin

  • Plugin page: no-specific-langu...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Feb 16, 2014
  • Latest release: Mar 5, 2014
  • Number of updates: 12
  • Update frequency: every 1.4 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /801 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7213.81 ▼30.55
Dashboard /wp-admin2.78 ▼0.5215.88 ▼28.32
Posts /wp-admin/edit.php2.78 ▼0.5716.74 ▼32.00
Add New Post /wp-admin/post-new.php2.78 ▼3.1015.53 ▼75.78
Media Library /wp-admin/upload.php2.78 ▼0.4514.53 ▼21.69
No Specific Language Visitors /wp-admin/options-general.php?page=no-specific-language-visitors-options2.7815.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,431 ▼33014.31 ▼0.040.50 ▼1.190.08 ▼45.35
Dashboard /wp-admin2,202 ▲225.57 ▼0.1090.62 ▼0.2940.54 ▲0.56
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0640.01 ▲4.2036.28 ▲2.08
Add New Post /wp-admin/post-new.php1,529 ▼622.27 ▲4.27690.60 ▲52.8868.96 ▲10.27
Media Library /wp-admin/upload.php1,404 ▲14.17 ▼0.01102.93 ▼1.9350.29 ▲8.22
No Specific Language Visitors /wp-admin/options-general.php?page=no-specific-language-visitors-options1,5276.41141.0162.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP2152570
PO File2161670

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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