56% farazsms

Code Review | افزونه پیامک حرفه ای فراز اس ام اس

WordPress plugin افزونه پیامک حرفه ای فراز اس ام اس scored56%from 54 tests.

About plugin

  • Plugin page: farazsms
  • Plugin version: 2.7.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 26, 2023
  • Latest release: Jun 11, 2023
  • Number of updates: 12
  • Update frequency: every 4.2 days
  • Top authors: farazsmsdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /5,617 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▲517.14ms] 50% from 4 tests

An overview of server-side resources used by افزونه پیامک حرفه ای فراز اس ام اس
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 784.76ms on /wp-admin/admin.php?page=farazsms_settings)
  • Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 517.14ms on /wp-admin/admin.php?page=farazsms_settings#/send_sms)
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.51 ▼5.92
Dashboard /wp-admin4.43 ▲1.12753.12 ▲696.78
Posts /wp-admin/edit.php3.54 ▲0.18744.13 ▲694.79
Add New Post /wp-admin/post-new.php6.12 ▲0.23900.33 ▲799.47
Media Library /wp-admin/upload.php3.35 ▲0.12721.06 ▲682.90
Settings /wp-admin/admin.php?page=farazsms_settings3.32784.76

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 87 new files
Database: 5 new tables, 17 new options
New tables
wp_farazsms_woocommerce_order_actions
wp_farazsms_gravity_forms
wp_farazsms_vcode
wp_farazsms_newsletter
wp_farazsms_tracking_codes
New WordPress options
theysaidso_admin_options
farazsms_membership_options
db_upgraded
farazsms_woocommerce_options
farazsms_edd_options
farazsms_login_notify_options
farazsms_comments_options
farazsms_elementor_options
farazsms_aff_options
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for افزونه پیامک حرفه ای فراز اس ام اس
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲21014.29 ▼0.061.76 ▲0.1243.54 ▲0.29
Dashboard /wp-admin2,371 ▲1946.14 ▲0.53137.23 ▲37.1254.35 ▲9.76
Posts /wp-admin/edit.php2,211 ▲1113.15 ▲1.1243.96 ▲4.7250.39 ▲14.14
Add New Post /wp-admin/post-new.php1,607 ▲7923.90 ▲0.62659.03 ▼25.8739.54 ▼22.20
Media Library /wp-admin/upload.php1,502 ▲1025.67 ▲1.50116.41 ▲3.1948.88 ▲0.77
Integrations /wp-admin/admin.php?page=farazsms_settings#/integrations1,2034.1966.94131.25
Newsletter /wp-admin/admin.php?page=farazsms_settings#/newsletter1,1454.6163.7728.38
WooCommerce Order SMS /wp-admin/admin.php?page=farazsms_settings#/woocommerce_order_actions1,0544.0065.1426.80
Synchronization /wp-admin/admin.php?page=farazsms_settings#/synchronization1,0773.7964.4527.53
Phonebook /wp-admin/admin.php?page=farazsms_settings#/phonebook1,1534.2462.5827.30
Comments /wp-admin/admin.php?page=farazsms_settings#/comments1,0993.9859.1827.31
Settings /wp-admin/admin.php?page=farazsms_settings1,1555.2963.2228.90
Woocommerce /wp-admin/admin.php?page=farazsms_settings#/woocommerce1,0633.8259.9127.84
Membership /wp-admin/admin.php?page=farazsms_settings#/membership1,0763.9059.4027.50
Send Sms /wp-admin/admin.php?page=farazsms_settings#/send_sms1,1344.6074.5129.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.18MB] 50% 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
  • Zombie tables were found after uninstall: 5 tables
    • wp_farazsms_woocommerce_order_actions
    • wp_farazsms_gravity_forms
    • wp_farazsms_tracking_codes
    • wp_farazsms_vcode
    • wp_farazsms_newsletter
  • Zombie WordPress options detected upon uninstall: 17 options
    • db_upgraded
    • widget_recent-posts
    • farazsms_edd_options
    • theysaidso_admin_options
    • farazsms_membership_options
    • farazsms_integrations_options
    • can_compress_scripts
    • farazsms_login_notify_options
    • widget_recent-comments
    • farazsms_newsletter_options
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=farazsms_settings
    • > POST request to /index.php/wp-json/farazsms/v1/get_lines
    • > Warning in wp-content/plugins/farazsms/classes/class-farazsms-routes.php+1182
    Invalid argument supplied for foreach()

SRP 0% 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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/farazsms/modules/farazsms/farazsms-admin-page.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/farazsms/modules/woocommerce/order-review/farazsms-order-review-page.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=farazsms_settings#/send_sms
    • > Javascript (severe) in unknown
    /wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0 9:128497 Uncaught Error: Minified React error #200; visit https://reactjs.o… for full errors and additional helpful warnings.
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=farazsms_settings#/send_sms
    • > Network (severe)
    index.php/wp-json/farazsms/v1/integrations_options - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=farazsms_settings#/newsletter
    • > Network (severe)
    index.php/wp-json/farazsms/v1/newsletter_options - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=farazsms_settings#/woocommerce_order_actions
    • > Network (severe)
    index.php/wp-json/wc/v3/products?per_page=100&page=1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=farazsms_settings#/phonebook
    • > Network (severe)
    index.php/wp-json/farazsms/v1/phonebook_options - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=farazsms_settings#/comments
    • > Network (severe)
    index.php/wp-json/farazsms/v1/comments_options - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=farazsms_settings#/woocommerce
    • > Network (severe)
    index.php/wp-json/farazsms/v1/woocommerce_options - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=farazsms_settings#/membership
    • > Network (severe)
    index.php/wp-json/farazsms/v1/membership_options - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: A description for screenshot #12 is missing in farazsms/assets to your readme.txt
The official readme.txt might help

farazsms/farazsms.php 92% from 13 tests

"افزونه پیامک حرفه ای فراز اس ام اس" version 2.7.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 279 characters long)

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
Success! There were no dangerous files found in this plugin13,213 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81746,635
PHP289361,5815,184
PO File13885751,016
CSS55614350
JSON280028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity25.29
▷ Minimum class complexity2.00
▷ Maximum class complexity147.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods233
▷ Static methods6628.33%
▷ Public methods23098.71%
▷ Protected methods20.86%
▷ Private methods10.43%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants11
▷ Global constants11100.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