84% simple-admin-language-change

Code Review | Simple Admin Language Change

WordPress plugin Simple Admin Language Change scored 84% from 54 tests.

About plugin

  • Plugin page: simple-admin-lang...
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2016
  • Latest release: Sep 26, 2023
  • Number of updates: 22
  • Update frequency: every 115.6 days
  • Top authors: vyskoczilova (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

8,000+ active / 36,248 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.15MB] [CPU: ▼1.97ms] Passed 4 tests

An overview of server-side resources used by Simple Admin Language Change
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.94 ▼5.93
Dashboard /wp-admin3.56 ▲0.2646.50 ▼4.86
Posts /wp-admin/edit.php3.62 ▲0.2749.57 ▲2.29
Add New Post /wp-admin/post-new.php5.96 ▲0.08100.77 ▲2.89
Media Library /wp-admin/upload.php3.56 ▲0.3436.12 ▲0.61

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

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

Browser metrics Passed 4 tests

Simple Admin Language Change: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.44 ▼0.851.53 ▼0.2237.74 ▼5.93
Dashboard /wp-admin2,232 ▲444.86 ▼0.02111.61 ▼0.2643.36 ▼3.78
Posts /wp-admin/edit.php2,115 ▲262.02 ▼0.0339.42 ▲0.0733.77 ▲0.18
Add New Post /wp-admin/post-new.php1,547 ▲2523.30 ▲0.20642.13 ▼29.2158.41 ▼2.53
Media Library /wp-admin/upload.php1,411 ▲294.18 ▼0.0599.58 ▼1.2342.15 ▲0.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • SALC_VERSION

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SALC\\add_action() in wp-content/plugins/simple-admin-language-change/inc/scripts-and-styles.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SALC\\add_action() in wp-content/plugins/simple-admin-language-change/inc/upgrade.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: backend, admin language, backend language, localization, english

simple-admin-language-change/simple-admin-language-change.php 92% from 13 tests

Analyzing the main PHP file in "Simple Admin Language Change" version 2.0.4
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected178 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44289148
JavaScript17025
Markdown1305

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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
Namespaces1
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin