84% a-simple-multilanguage

Code Review | A Simple Multilanguage Plugin

WordPress plugin A Simple Multilanguage Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: a-simple-multilan...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 5.8.1
  • First release: May 12, 2016
  • Latest release: May 11, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: piupiiu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.46MB] [CPU: ▼180.49ms] Passed 4 tests

Analyzing server-side resources used by A Simple Multilanguage Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.57 ▼0.2618.11 ▼13.06
Dashboard /wp-admin3.00 ▼0.0626.91 ▼15.95
Posts /wp-admin/edit.php2.94 ▼0.1719.34 ▼17.96
Add New Post /wp-admin/post-new.php4.08 ▼1.3652.63 ▼674.99
Media Library /wp-admin/upload.php3.03 ▲0.0224.77 ▼2.30
Languages [ASMP] /wp-admin/options-general.php?page=asmp3.0026.91

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_asmplanguagemodule

Browser metrics Passed 4 tests

A check of browser resources used by A Simple Multilanguage Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲7315.70 ▲0.064.74 ▼0.5080.34 ▲7.70
Dashboard /wp-admin2,941 ▲456.10 ▼0.06115.15 ▼12.35165.01 ▼10.03
Posts /wp-admin/edit.php2,748 ▲63.22 ▼0.0170.20 ▲6.86135.75 ▼2.61
Add New Post /wp-admin/post-new.php3,931 ▲23319.13 ▲0.30478.93 ▲14.03174.70 ▲3.06
Media Library /wp-admin/upload.php1,759 ▲75.49 ▲0.00140.68 ▼4.95185.61 ▼3.41
Languages [ASMP] /wp-admin/options-general.php?page=asmp1,1852.4954.71147.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_asmplanguagemodule

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/a-simple-multilanguage/a-simple-multilang.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
3 plugin tags: translate, multilanguage, language

a-simple-multilanguage/a-simple-multilang.php 85% from 13 tests

The entry point to "A Simple Multilanguage Plugin" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("a-simple-multilanguage.php" instead of "a-simple-multilang.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin364 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1378364

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected