84% rtl-feed-presian

Code Review | RTL-Feed-Persian

WordPress plugin RTL-Feed-Persian scored84%from 54 tests.

About plugin

  • Plugin page: rtl-feed-presian
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.4
  • WordPress version: 6.3.1
  • First release: Jun 22, 2012
  • Latest release: Jun 23, 2012
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: behrouzpc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,189 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by RTL-Feed-Persian
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.34 ▲2.21
Dashboard /wp-admin3.31 ▲0.0149.55 ▼7.90
Posts /wp-admin/edit.php3.36 ▲0.0150.23 ▼1.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.54 ▼8.48
Media Library /wp-admin/upload.php3.23 ▲0.0138.98 ▲1.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for RTL-Feed-Persian
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.171.62 ▼0.2450.99 ▲6.87
Dashboard /wp-admin2,206 ▲155.84 ▲0.73104.54 ▼9.0142.55 ▼0.65
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0241.83 ▼0.1137.67 ▲1.78
Add New Post /wp-admin/post-new.php1,533 ▼623.09 ▼0.13649.22 ▲24.7757.32 ▼2.45
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.01108.42 ▲4.4945.97 ▲0.24

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rtl-feed-presian/rtlFeedPersian.php:37

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 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === rtl-feed-presian === )
Please take inspiration from this readme.txt

rtl-feed-presian/rtlFeedPersian.php 92% from 13 tests

This is the main PHP file of "RTL-Feed-Persian" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rtl-feed-presian.php" instead of "rtlFeedPersian.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin