84% rtl-rss-feed-fixer

Code Review | RTL Feed Fixer

WordPress plugin RTL Feed Fixer scored84%from 54 tests.

About plugin

  • Plugin page: rtl-rss-feed-fixer
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2014
  • Latest release: Jun 6, 2015
  • Number of updates: 11
  • Update frequency: every 19.1 days
  • Top authors: barzik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,247 total downloads

Benchmarks

Plugin footprint 83% from 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.02MB] [CPU: ▼6.51ms] Passed 4 tests

Analyzing server-side resources used by RTL Feed Fixer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.41 ▼3.58
Dashboard /wp-admin3.33 ▲0.0250.23 ▼9.36
Posts /wp-admin/edit.php3.38 ▲0.0262.70 ▲12.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.97 ▼11.50
Media Library /wp-admin/upload.php3.25 ▲0.0239.65 ▼1.61

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by RTL Feed Fixer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.60 ▲0.251.63 ▼0.2743.09 ▼1.35
Dashboard /wp-admin2,198 ▲185.61 ▼0.0584.23 ▼18.7040.79 ▼5.06
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0640.50 ▲1.8636.96 ▲0.38
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▲0.22699.89 ▲12.6258.82 ▼6.21
Media Library /wp-admin/upload.php1,400 ▼04.15 ▲0.0399.99 ▼15.0345.95 ▼2.62

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rtl-rss-feed-fixer/tests/test_rtl-feed-fixer-basic.php:6
    • > PHP Fatal error
      require(): Failed opening required '../../../../tests/phpunit/includes/bootstrap.php' (include_path='.:/usr/share/php') in wp-content/plugins/rtl-rss-feed-fixer/tests/bootstrap.php on line 22
    • > PHP Warning
      require(../../../../tests/phpunit/includes/bootstrap.php): failed to open stream: No such file or directory in wp-content/plugins/rtl-rss-feed-fixer/tests/bootstrap.php on line 22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: rss, rtl, feed, rtl support, fix...

rtl-rss-feed-fixer/rtl-feed-fixer.php 85% from 13 tests

The entry point to "RTL Feed Fixer" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rtl-rss-feed-fixer.php" instead of "rtl-feed-fixer.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 plugin240 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP499174161
Markdown116047
PO File14625
XML1017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity4.00
▷ Maximum class complexity14.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods533.33%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.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
No PNG files were detected