84% atr-inline-rtl-ltr

Code Review | Atr Inline Rtl Ltr

WordPress plugin Atr Inline Rtl Ltr scored84%from 54 tests.

About plugin

  • Plugin page: atr-inline-rtl-ltr
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2022
  • Latest release: Dec 17, 2022
  • Number of updates: 6
  • Update frequency: every 30.8 days
  • Top authors: yehudaT (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /915 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.04ms] Passed 4 tests

An overview of server-side resources used by Atr Inline Rtl Ltr
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.12 ▼1.65
Dashboard /wp-admin3.31 ▼0.0347.06 ▼16.95
Posts /wp-admin/edit.php3.36 ▲0.0146.54 ▼4.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.85 ▼20.79
Media Library /wp-admin/upload.php3.23 ▲0.0139.08 ▲1.37

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Atr Inline Rtl Ltr
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.121.73 ▲0.1843.85 ▲4.81
Dashboard /wp-admin2,192 ▲175.55 ▼0.1682.17 ▼16.5339.36 ▼3.95
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0139.28 ▲4.0135.83 ▲0.03
Add New Post /wp-admin/post-new.php1,685 ▲15621.90 ▼1.31612.41 ▼73.8743.90 ▼12.88
Media Library /wp-admin/upload.php1,400 ▲34.26 ▼0.0196.99 ▼13.1240.47 ▼7.69

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/atr-inline-rtl-ltr/atr-inline-rtl-ltr.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% 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
6 plugin tags: rtl, rtl languages, text direction, gutenberg, ltr...

atr-inline-rtl-ltr/atr-inline-rtl-ltr.php 92% from 13 tests

The main file in "Atr Inline Rtl Ltr" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 548 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected28,185 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON30028,178
PHP23216
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.30MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png12.36KB4.21KB▼ 65.91%
assets/screenshot-1.png291.76KB136.76KB▼ 53.13%