89% r3df-multisite-language-indicator

Code Review | R3DF Multisite Language Indicator

WordPress plugin R3DF Multisite Language Indicator scored89%from 54 tests.

About plugin

  • Plugin page: r3df-multisite-la...
  • Plugin version: 1.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Dec 14, 2016
  • Number of updates: 40
  • Update frequency: every 15.3 days
  • Top authors: r3df (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,708 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.19MB] [CPU: ▼8.40ms] Passed 4 tests

An overview of server-side resources used by R3DF Multisite Language Indicator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2044.23 ▲6.43
Dashboard /wp-admin3.51 ▲0.1651.80 ▼10.72
Posts /wp-admin/edit.php3.62 ▲0.2647.95 ▼5.53
Add New Post /wp-admin/post-new.php6.09 ▲0.2085.17 ▼16.09
Media Library /wp-admin/upload.php3.43 ▲0.2034.23 ▼1.25

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 270 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 R3DF Multisite Language Indicator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.46 ▲0.091.77 ▼0.0643.56 ▼2.17
Dashboard /wp-admin2,209 ▲244.88 ▼0.9896.47 ▼5.2636.81 ▼5.52
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0034.48 ▼6.2833.37 ▼3.29
Add New Post /wp-admin/post-new.php1,514 ▼617.52 ▼5.61636.22 ▼24.4753.98 ▲2.31
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0396.83 ▼0.9339.85 ▼4.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Plugin options.)
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

r3df-multisite-language-indicator/r3df-multisite-language-indicator.php Passed 13 tests

The main PHP script in "R3DF Multisite Language Indicator" version 1.0.12 is automatically included on every request by WordPress
87 characters long description:
Indicates the site language beside the site title in the toolbar to help identify sites

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
Everything looks great! No dangerous files found in this plugin27,790 lines of code in 255 files:
LanguageFilesBlank linesComment linesLines of code
SVG248931,19226,049
PO File1361384734
PHP388242728
CSS381279

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity76.00
▷ Minimum class complexity76.00
▷ Maximum class complexity76.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
5 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png67.86KB28.35KB▼ 58.22%
screenshot-5.png27.22KB11.10KB▼ 59.23%
screenshot-2.png72.86KB29.97KB▼ 58.87%
screenshot-3.png78.31KB32.08KB▼ 59.04%
screenshot-4.png36.71KB11.93KB▼ 67.50%