89% hide-language-switcher

Code Review | Hide Language Switcher

WordPress plugin Hide Language Switcher scored 89% from 54 tests.

About plugin

  • Plugin page: hide-language-swi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Jan 28, 2022
  • Latest release: Jan 28, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ziher4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 355 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.33ms] Passed 4 tests

A check of server-side resources used by Hide Language Switcher
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.51 ▼1.52
Dashboard /wp-admin3.31 ▲0.0045.61 ▼0.82
Posts /wp-admin/edit.php3.36 ▲0.0043.95 ▲0.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.37 ▲8.22
Media Library /wp-admin/upload.php3.23 ▲0.0038.36 ▲3.25

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Hide Language Switcher
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.24 ▼0.021.65 ▼0.3040.80 ▼1.94
Dashboard /wp-admin2,209 ▲34.83 ▼1.00100.19 ▼13.5138.23 ▼4.62
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0439.37 ▲1.2734.99 ▲0.23
Add New Post /wp-admin/post-new.php1,530 ▲1618.31 ▲0.83612.58 ▼81.4257.63 ▼4.55
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0193.25 ▼7.6342.05 ▼3.76

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: hide, language switcher, disable, remove, login screen

hide-language-switcher/wpave-hide-language-switcher.php 85% from 13 tests

The main PHP script in "Hide Language Switcher" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hide-language-switcher.php" instead of "wpave-hide-language-switcher.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin11 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP261211

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin