84% persian-reports

Code Review | Persian Reports - گزارش فارسی ووکامرس

WordPress plugin Persian Reports - گزارش فارسی ووکامرس scored84%from 54 tests.

About plugin

  • Plugin page: persian-reports
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 11, 2022
  • Latest release: May 14, 2022
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: wpvar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,677 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.48ms] Passed 4 tests

A check of server-side resources used by Persian Reports - گزارش فارسی ووکامرس
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.97 ▲1.10
Dashboard /wp-admin3.37 ▲0.0748.77 ▼22.06
Posts /wp-admin/edit.php3.49 ▲0.1347.54 ▼1.91
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.04 ▼3.03
Media Library /wp-admin/upload.php3.30 ▲0.0734.26 ▲3.12

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
woopr_is_active

Browser metrics Passed 4 tests

Persian Reports - گزارش فارسی ووکامرس: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.30 ▼1.454.91 ▲2.8145.91 ▲2.77
Dashboard /wp-admin2,249 ▲614.88 ▼0.00113.90 ▼0.6442.47 ▼0.71
Posts /wp-admin/edit.php2,128 ▲392.05 ▲0.0436.45 ▼6.3433.07 ▼2.69
Add New Post /wp-admin/post-new.php1,542 ▲2823.56 ▲6.05676.38 ▼2.2957.40 ▲8.41
Media Library /wp-admin/upload.php1,425 ▲374.21 ▼0.1196.65 ▲0.2742.10 ▼1.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • woopr_is_active

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/persian-reports/temp/footer.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/persian-reports/temp/chart.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/persian-reports/temp/sidebar.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/persian-reports/temp/header.php:3

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: farsi, woocommerce, jalali, iran, date...

persian-reports/persian-reports.php 92% from 13 tests

Analyzing the main PHP file in "Persian Reports - گزارش فارسی ووکامرس" version 1.0.1
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin525 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1076178368
CSS2236149
JavaScript41338

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.50
▷ Minimum class complexity5.00
▷ Maximum class complexity22.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1780.95%
▷ Protected methods419.05%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin