84% farsi-font-for-elementor

Code Review | Farsi Font for Elementor

WordPress plugin Farsi Font for Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: farsi-font-for-el...
  • Plugin version: 2.9.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Jul 29, 2022
  • Number of updates: 44
  • Update frequency: every 17.7 days
  • Top authors: pixer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 21,558 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.38ms] Passed 4 tests

Server-side resources used by Farsi Font for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.92 ▼0.72
Dashboard /wp-admin3.33 ▲0.0347.00 ▼3.61
Posts /wp-admin/edit.php3.38 ▲0.0348.85 ▲0.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.42 ▼9.54
Media Library /wp-admin/upload.php3.26 ▲0.0336.31 ▲0.34

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Farsi Font for Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.20 ▼1.451.84 ▲0.0740.90 ▼3.32
Dashboard /wp-admin2,215 ▲275.79 ▲0.92108.42 ▲4.0138.98 ▼2.85
Posts /wp-admin/edit.php2,097 ▲51.98 ▼0.0639.50 ▲3.7631.88 ▼2.80
Add New Post /wp-admin/post-new.php1,529 ▼1322.98 ▲4.56613.59 ▼18.8260.11 ▼2.92
Media Library /wp-admin/upload.php1,397 ▲64.23 ▼0.0199.79 ▲3.4945.89 ▲3.16

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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 | 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/farsi-font-for-elementor/includes/fonts.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: farsi font elementor, farsi, farsi font

farsi-font-for-elementor/farsi-font-for-elementor.php Passed 13 tests

"Farsi Font for Elementor" version 2.9.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Adds Vazirmatn font to be used in Elementor Page Builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin154 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53025117
PO File18936
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin