83% ltrrtl-admin-content

Code Review | LTR RTL Admin content

WordPress plugin LTR RTL Admin content scored83%from 54 tests.

About plugin

  • Plugin page: ltrrtl-admin-content
  • Plugin version: 0.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4
  • WordPress version: 6.3.1
  • First release: Jan 3, 2015
  • Latest release: Nov 19, 2023
  • Number of updates: 29
  • Update frequency: every 111.8 days
  • Top authors: ronshe (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

5,000+ active /47,074 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.59ms] Passed 4 tests

A check of server-side resources used by LTR RTL Admin content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.59 ▼5.97
Dashboard /wp-admin3.32 ▲0.0144.56 ▼4.26
Posts /wp-admin/edit.php3.37 ▲0.0147.00 ▼4.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.36 ▼19.64
Media Library /wp-admin/upload.php3.24 ▲0.0132.15 ▼8.50

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by LTR RTL Admin content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4514.75 ▲0.471.70 ▼0.0229.67 ▼14.19
Dashboard /wp-admin2,215 ▲385.62 ▼0.0494.37 ▼8.3944.06 ▲1.85
Posts /wp-admin/edit.php2,117 ▲172.05 ▲0.0440.35 ▲3.7837.59 ▲1.30
Add New Post /wp-admin/post-new.php1,537 ▲1123.21 ▲0.03660.44 ▼50.2860.63 ▲7.12
Media Library /wp-admin/upload.php1,417 ▲174.29 ▲0.10105.77 ▲5.9844.94 ▲3.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ltrrtl-admin-content/ltr-admin.php

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

readme.txt 94% 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 need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Before clicking LTR<=>RTL), #2 (After clicking LTR<=>RTL)
You can take inspiration from this readme.txt

ltrrtl-admin-content/ltr-admin.php 85% from 13 tests

"LTR RTL Admin content" version 0.6.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("ltrrtl-admin-content.php" instead of "ltr-admin.php")

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
There were no executable files found in this plugin120 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File22444
PHP1101227
JavaScript11025
CSS12024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions3
▷ Named functions3100.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
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png52.60KB21.51KB▼ 59.11%
icon.png1.17KB0.78KB▼ 32.97%
screenshot-2.png52.75KB21.64KB▼ 58.98%