94% wp-rtl

Code Review | WP-RTL

WordPress plugin WP-RTL scored 94% from 54 tests.

About plugin

  • Plugin page: wp-rtl
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.5
  • WordPress version: 5.8.1
  • First release: Oct 27, 2008
  • Latest release: Apr 11, 2016
  • Number of updates: 27
  • Update frequency: every 100.9 days
  • Top authors: fduraibi (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

4,000+ active / 46,862 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WP-RTL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0141.04 ▲1.12
Dashboard /wp-admin3.07 ▲0.0158.01 ▲6.95
Posts /wp-admin/edit.php3.12 ▲0.0166.18 ▲15.27
Add New Post /wp-admin/post-new.php5.43 ▼0.0197.65 ▼571.11
Media Library /wp-admin/upload.php3.01 ▲0.0139.10 ▼4.31

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-RTL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.89 ▲0.269.80 ▼0.6550.80 ▼3.28
Dashboard /wp-admin2,967 ▲335.89 ▼0.06183.69 ▲17.50148.12 ▲25.20
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.01101.90 ▲35.95106.51 ▲7.15
Add New Post /wp-admin/post-new.php1,617 ▲3621.37 ▲3.16311.84 ▼131.01115.51 ▼4.67
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.04169.34 ▼1.89124.42 ▼6.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rtl/wp-rtl.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

wp-rtl/wp-rtl.php Passed 13 tests

Analyzing the main PHP file in "WP-RTL" version 1.0
120 characters long description:
Adds two buttons to the TinyMCE editor to enable writing text in Left to Right (LTR) and Right to Left (RTL) directions.

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 detected33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102026
CSS1107

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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
No PNG files were detected