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: 6.3.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

50+ active / 3,019 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.87MB] [CPU: ▼28.82ms] Passed 4 tests

An overview of server-side resources used by A Simple Multilanguage Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▼0.6215.34 ▼26.12
Dashboard /wp-admin3.27 ▼0.0337.87 ▼11.21
Posts /wp-admin/edit.php3.20 ▼0.1529.78 ▼19.93
Add New Post /wp-admin/post-new.php3.23 ▼2.6638.03 ▼58.00
Media Library /wp-admin/upload.php3.30 ▲0.0737.90 ▲2.31
Languages [ASMP] /wp-admin/options-general.php?page=asmp3.2735.10

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_asmplanguagemodule
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by A Simple Multilanguage Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.55 ▼1.011.69 ▼0.1639.13 ▼7.31
Dashboard /wp-admin2,212 ▲244.85 ▼0.02111.42 ▲2.2241.46 ▼1.72
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0635.53 ▼4.8031.94 ▼3.86
Add New Post /wp-admin/post-new.php1,538 ▲123.00 ▲0.21657.70 ▼18.6856.68 ▲3.07
Media Library /wp-admin/upload.php1,394 ▲94.16 ▲0.0396.74 ▼17.2440.29 ▼3.83
Languages [ASMP] /wp-admin/options-general.php?page=asmp9112.0223.3430.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • widget_asmplanguagemodule
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/a-simple-multilanguage/a-simple-multilang.php

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: translate, language, multilanguage

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

"A Simple Multilanguage Plugin" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("a-simple-multilanguage.php" instead of "a-simple-multilang.php")
  • Description: The description should be 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
Good job! No executable or dangerous file extensions detected364 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1378364

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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

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