89% language-notice-for-multilanguage-site

Code Review | Language Notice For Multilanguage Site

WordPress plugin Language Notice For Multilanguage Site scored89%from 54 tests.

About plugin

  • Plugin page: language-notice-f...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6 or later+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 4, 2023
  • Latest release: Sep 4, 2023
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: antoniolamorgese (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.37MB] [CPU: ▼22.24ms] Passed 4 tests

An overview of server-side resources used by Language Notice For Multilanguage Site
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.26 ▼40.81
Dashboard /wp-admin3.31 ▼0.0449.91 ▼15.48
Posts /wp-admin/edit.php3.36 ▲0.0049.78 ▲1.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.75 ▼16.60
Media Library /wp-admin/upload.php3.23 ▲0.0031.49 ▼16.05

Server storage [IO: ▲0.60MB] [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, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Language Notice For Multilanguage Site
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.36 ▼0.022.39 ▲0.5946.68 ▲3.03
Dashboard /wp-admin2,198 ▲185.69 ▲0.0885.14 ▼13.8939.51 ▲1.28
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0237.46 ▲1.9638.06 ▲2.39
Add New Post /wp-admin/post-new.php1,531 ▼1523.21 ▲0.06653.95 ▲4.1249.74 ▼6.15
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0598.34 ▼14.3843.30 ▼1.98

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: multilingual, polylang, language, translate, translation...

language-notice-for-multilanguage-site/language-notice-for-multilanguage-site.php 69% from 13 tests

The primary PHP file in "Language Notice For Multilanguage Site" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.3" instead of "5.6")
  • Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "5.6 or later")
  • Description: The description should be shorter than 140 characters (currently 210 characters long)
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin111 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3953110
CSS1031

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.73
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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.31MB with 0.21MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png217.62KB77.63KB▼ 64.33%
assets/banner-772x250.png104.24KB34.41KB▼ 66.99%