63% arvancloud-vod

Code Review | ArvanCloud VOD for Wordpress

WordPress plugin ArvanCloud VOD for Wordpress scored63%from 54 tests.

About plugin

  • Plugin page: arvancloud-vod
  • Plugin version: 0.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2023
  • Latest release: Aug 5, 2023
  • Number of updates: 5
  • Update frequency: every 41.2 days
  • Top authors: khorshidlab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /716 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.40ms] Passed 4 tests

Analyzing server-side resources used by ArvanCloud VOD for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2744.57 ▼0.26
Dashboard /wp-admin3.37 ▲0.0735.71 ▼12.70
Posts /wp-admin/edit.php3.45 ▲0.0942.36 ▼5.69
Add New Post /wp-admin/post-new.php5.69 ▼0.2074.11 ▼17.07
Media Library /wp-admin/upload.php3.39 ▲0.1635.72 ▼2.13
About /wp-admin/admin.php?page=arvancloud-vod-about3.3633.38
Scheduled Actions /wp-admin/tools.php?page=action-scheduler3.6538.75
Setting /wp-admin/admin.php?page=arvancloud-vod3.3628.98

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 280 new files
Database: 4 new tables, 10 new options
New tables
wp_actionscheduler_logs
wp_actionscheduler_groups
wp_actionscheduler_claims
wp_actionscheduler_actions
New WordPress options
action_scheduler_lock_async-request-runner
widget_recent-comments
schema-ActionScheduler_StoreSchema
widget_recent-posts
action_scheduler_hybrid_store_demarkation
schema-ActionScheduler_LoggerSchema
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for ArvanCloud VOD for Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲16114.34 ▼0.051.86 ▲0.1142.56 ▼0.14
Dashboard /wp-admin2,296 ▲1216.30 ▲0.61116.20 ▼2.15107.50 ▲59.79
Posts /wp-admin/edit.php2,236 ▲1333.40 ▲1.4349.47 ▲3.4681.12 ▲43.26
Add New Post /wp-admin/post-new.php1,583 ▲5723.09 ▲0.05590.27 ▼42.1835.36 ▼21.01
Media Library /wp-admin/upload.php1,464 ▲644.09 ▼0.1290.01 ▼15.5283.48 ▲37.18
About /wp-admin/admin.php?page=arvancloud-vod-about1,0123.1243.6477.32
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,3983.2043.0366.48
Setting /wp-admin/admin.php?page=arvancloud-vod1,0343.1342.3484.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_actionscheduler_groups
    • wp_actionscheduler_actions
    • wp_actionscheduler_logs
    • wp_actionscheduler_claims
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-posts
    • db_upgraded
    • schema-ActionScheduler_StoreSchema
    • widget_theysaidso_widget
    • action_scheduler_hybrid_store_demarkation
    • schema-ActionScheduler_LoggerSchema
    • theysaidso_admin_options
    • widget_recent-comments
    • action_scheduler_lock_async-request-runner
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=arvancloud-vod
    • > User notice in wp-includes/functions.php+5905
    Function wp_add_inline_script was called incorrectly. Do not pass <script> tags to wp_add_inline_script(). Please see Debugging in WordPress for more information. (This message was added in version 4.5.0.)

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/arvancloud-vod/arvancloud-vod.php
  • 159× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/arvancloud-vod/vendor/woocommerce/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/arvancloud-vod/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/arvancloud-vod/admin/views/pages/api-key-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Action_Scheduler\\Migration\\LogMigrator' not found in wp-content/plugins/arvancloud-vod/vendor/woocommerce/action-scheduler/classes/migration/DryRun_LogMigrator.php:13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/arvancloud-vod/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/arvancloud-vod/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/arvancloud-vod/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/arvancloud-vod/vendor/composer/installers/src/Composer/Installers/MiaoxingInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/arvancloud-vod/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/arvancloud-vod/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: vod, arvancloud

arvancloud-vod/arvancloud-vod.php Passed 13 tests

"ArvanCloud VOD for Wordpress" version 0.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
140 characters long description:
ArvanCloud Video Platform allows users to publish, store and convert their video content without worrying about the required infrastructure.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected15,088 lines of code in 257 files:
LanguageFilesBlank linesComment linesLines of code
PHP2272,7646,63011,473
JSON7602,060
PO File1255560750
JavaScript56163297
Sass3350221
Markdown4560126
YAML3313123
CSS542333
SVG2005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.63
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces15
Interfaces3
Traits0
Classes205
▷ Abstract classes167.80%
▷ Concrete classes18992.20%
▷ Final classes10.53%
Methods852
▷ Static methods10412.21%
▷ Public methods63174.06%
▷ Protected methods17420.42%
▷ Private methods475.52%
Functions51
▷ Named functions1937.25%
▷ Anonymous functions3262.75%
Constants81
▷ Global constants911.11%
▷ Class constants7288.89%
▷ Public constants72100.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