79% sabapayamak

Code Review | افزونه صباپیامک SabaPayamak

WordPress plugin افزونه صباپیامک SabaPayamak scored79%from 54 tests.

About plugin

  • Plugin page: sabapayamak
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 6.3.1
  • First release: Dec 19, 2021
  • Latest release: Jan 31, 2022
  • Number of updates: 6
  • Update frequency: every 7.5 days
  • Top authors: karansco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,445 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲2.11MB] [CPU: ▲12.90ms] Passed 4 tests

An overview of server-side resources used by افزونه صباپیامک SabaPayamak
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.36 ▲1.9046.88 ▲4.15
Dashboard /wp-admin5.49 ▲2.1968.02 ▲16.83
Posts /wp-admin/edit.php5.61 ▲2.2568.37 ▲19.76
Add New Post /wp-admin/post-new.php8.07 ▲2.1897.90 ▲11.07
Media Library /wp-admin/upload.php5.39 ▲2.1757.45 ▲19.55

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: 6 new tables, 18 new options
New tables
wp_sabapayamak_event
wp_sabapayamak_sms_log
wp_woocommerce_ir_sms_archive
wp_sabapayamak_sms_log_single
wp_sabapayamak_handler
wp_woocommerce_ir_sms_contacts
New WordPress options
sms_product_admin_settings
sms_notif_settings
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
pwoosms_update_gateway_options
pwoosms_table_contacts_updated
pwoosms_table_archive
sms_buyer_settings
...

Browser metrics Passed 4 tests

An overview of browser requirements for افزونه صباپیامک SabaPayamak
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲24315.23 ▲0.871.75 ▼0.0940.73 ▼6.38
Dashboard /wp-admin2,396 ▲2116.63 ▲0.81143.64 ▲26.7351.15 ▲5.09
Posts /wp-admin/edit.php2,299 ▲2073.54 ▲1.5567.90 ▲29.2938.33 ▲2.61
Add New Post /wp-admin/post-new.php1,714 ▲19422.75 ▼0.46636.65 ▼46.7229.71 ▼23.97
Media Library /wp-admin/upload.php1,438 ▲474.35 ▲0.1682.98 ▼20.7949.74 ▲5.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 6 tables
    • wp_sabapayamak_handler
    • wp_woocommerce_ir_sms_archive
    • wp_sabapayamak_sms_log_single
    • wp_sabapayamak_event
    • wp_woocommerce_ir_sms_contacts
    • wp_sabapayamak_sms_log
  • Zombie WordPress options were found after uninstall: 17 options
    • pwoosms_table_contacts_updated
    • sms_notif_settings
    • pwoosms_table_contacts_created
    • sms_super_admin_settings
    • sms_contacts
    • sms_product_admin_settings
    • can_compress_scripts
    • pwoosms_update_gateway_options
    • pwoosms_update_product_admin_meta
    • theysaidso_admin_options
    • ...

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There were no tags found
You can look at the official readme.txt

sabapayamak/sabapayamak.php 92% from 13 tests

The main PHP file in "افزونه صباپیامک SabaPayamak" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected9,752 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP302,0975938,913
JavaScript46499443
CSS2924377
SVG10019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity26.72
▷ Minimum class complexity1.00
▷ Maximum class complexity205.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes42
▷ Abstract classes37.14%
▷ Concrete classes3992.86%
▷ Final classes00.00%
Methods416
▷ Static methods16840.38%
▷ Public methods37790.62%
▷ Protected methods40.96%
▷ Private methods358.41%
Functions50
▷ Named functions2856.00%
▷ Anonymous functions2244.00%
Constants69
▷ Global constants68.70%
▷ Class constants6391.30%
▷ Public constants63100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
woocommerce/assets/images/false.png1.23KB0.89KB▼ 27.25%
woocommerce/assets/images/tick.png1.10KB0.85KB▼ 22.61%
assets/icon.png10.38KB4.90KB▼ 52.78%