84% formafzar

Code Review | فرم ساز فرم افزار

WordPress plugin فرم ساز فرم افزار scored84%from 54 tests.

About plugin

  • Plugin page: formafzar
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0
  • WordPress version: 6.3.1
  • First release: Nov 1, 2022
  • Latest release: Nov 1, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: formafzar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.01ms] Passed 4 tests

An overview of server-side resources used by فرم ساز فرم افزار
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.40 ▼2.54
Dashboard /wp-admin3.32 ▼0.0247.03 ▼22.50
Posts /wp-admin/edit.php3.37 ▲0.0251.32 ▲1.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.70 ▼3.76
Media Library /wp-admin/upload.php3.24 ▲0.0239.57 ▲0.78

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by فرم ساز فرم افزار
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.221.96 ▼0.0941.13 ▼0.39
Dashboard /wp-admin2,195 ▲245.60 ▲0.0189.42 ▲4.1741.67 ▼3.60
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0542.84 ▲5.5435.96 ▼1.76
Add New Post /wp-admin/post-new.php6,362 ▲4,81727.68 ▲4.62943.32 ▲250.4658.26 ▲0.94
Media Library /wp-admin/upload.php1,400 ▲64.25 ▼0.00100.33 ▼11.3144.38 ▼3.28

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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_shortcode() in wp-content/plugins/formafzar/formafzar.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #4, #5, #6, #7, #8 in formafzar/assets to your readme.txt
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

formafzar/formafzar.php Passed 13 tests

"فرم ساز فرم افزار" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
فرم ساز آنلاین

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 plugin411 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2377334
PHP1251277

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
RaveshForm_logo.png2.69KB1.91KB▼ 28.84%
RaveshForm_logo2.png2.64KB1.80KB▼ 31.98%