10% ps-openrpa

Code Review | PS OpenRPA

WordPress plugin PS OpenRPA scored10%from 54 tests.

About plugin

  • Plugin page: ps-openrpa
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2023
  • Latest release: Oct 4, 2023
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: primestrategy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /34 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/ps-openrpa/includes/class-openrpa-api.php+70
    syntax error, unexpected '|', expecting variable (T_VARIABLE)

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.44ms] Passed 4 tests

An overview of server-side resources used by PS OpenRPA
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.92 ▼3.09
Dashboard /wp-admin3.31 ▼0.0443.04 ▼14.31
Posts /wp-admin/edit.php3.36 ▲0.0043.88 ▼3.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.01 ▼28.39
Media Library /wp-admin/upload.php3.23 ▲0.0034.31 ▲1.09

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

PS OpenRPA: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.72 ▼0.911.62 ▼0.1040.42 ▼1.06
Dashboard /wp-admin2,209 ▲205.89 ▲0.92101.03 ▼18.6639.85 ▼3.43
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0743.19 ▲1.8233.74 ▼0.45
Add New Post /wp-admin/post-new.php1,544 ▲1618.29 ▲0.21612.07 ▲17.0349.18 ▲2.97
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0793.47 ▼6.3441.85 ▼0.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/ps-openrpa/includes/class-openrpa-api.php on line 70

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (スケジュール設定ページ), #2 (タスク実行履歴確認ページ)
The official readme.txt is a good inspiration

ps-openrpa/openrpa.php 92% from 13 tests

The main PHP file in "PS OpenRPA" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ps-openrpa.php" instead of "openrpa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,009 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP112243311,132
JavaScript3151133671
CSS33317201
Markdown1305

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.50
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes6100.00%
Methods45
▷ Static methods00.00%
▷ Public methods3884.44%
▷ Protected methods00.00%
▷ Private methods715.56%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants16
▷ Global constants1275.00%
▷ Class constants425.00%
▷ Public constants125.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 1.36MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/howto/openrpa_regedit1.png20.98KB8.77KB▼ 58.19%
assets/images/howto/openrpa_taskschd6.png111.35KB38.28KB▼ 65.62%
assets/images/lib/next.png1.32KB1.58KB0.00%
assets/images/howto/openrpa_taskschd7.png110.17KB38.10KB▼ 65.42%
assets/images/howto/openrpa_taskschd13.png99.01KB32.75KB▼ 66.93%