83% filkers-video-marketing-with-your-products

Code Review | Filkers - Turn your products into videos

WordPress plugin Filkers - Turn your products into videos scored83%from 54 tests.

About plugin

  • Plugin page: filkers-video-mar...
  • Plugin version: 1.1.12
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 22, 2021
  • Latest release: May 25, 2022
  • Number of updates: 39
  • Update frequency: every 8.8 days
  • Top authors: jcasalsd (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50+ active /1,682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.18ms] Passed 4 tests

A check of server-side resources used by Filkers - Turn your products into videos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4342.72 ▼8.36
Dashboard /wp-admin3.70 ▲0.3982.45 ▲31.64
Posts /wp-admin/edit.php3.73 ▲0.3853.85 ▲10.45
Add New Post /wp-admin/post-new.php5.20 ▼0.6958.76 ▼29.35
Media Library /wp-admin/upload.php3.54 ▲0.3137.70 ▲2.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 160 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Filkers - Turn your products into videos
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.84 ▼0.559.48 ▲7.5636.96 ▼4.95
Dashboard /wp-admin2,231 ▲515.66 ▲0.0986.00 ▼3.1339.45 ▼2.75
Posts /wp-admin/edit.php2,136 ▲362.14 ▲0.2040.27 ▼2.8535.81 ▼1.11
Add New Post /wp-admin/post-new.php6,410 ▲4,87328.52 ▲10.23919.99 ▲285.0939.63 ▼25.09
Media Library /wp-admin/upload.php1,436 ▲364.24 ▲0.0596.30 ▼13.6541.72 ▼1.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/block-serverside/src/BlockQuery.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Filkers_Base_Widget' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/elementor/src/widgets/filkers-base-product-widget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/elementor/src/widgets/filkers-base-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/elementor/src/widgets/filkers-base-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/block-serverside/src/BlockQuery.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/block-serverside/src/BlockQuery.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Filkers_Base_Widget' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/elementor/src/widgets/filkers-base-product-widget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Filkers_Base_Widget' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/elementor/src/widgets/filkers-base-product-widget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Control_Base_Multiple' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/elementor/src/controls/filkers-design-uid-control.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/filkers-video-marketing-with-your-products/modules/block-serverside/src/BlockQuery.php:7

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: products, video, marketing, woocommerce, blocks...

filkers-video-marketing-with-your-products/filkers.php 77% from 13 tests

"Filkers - Turn your products into videos" version 1.1.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("filkers-video-marketing-with-your-products.php" instead of "filkers.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)
  • Domain Path: The domain path folder does not exist ("/languages/")

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 plugin4,920 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PHP345751052,090
TypeScript42306191,319
JavaScript4635221,068
JSON900204
CSS763136117
Sass227297
JSX10023
SVG2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.23
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes31
▷ Abstract classes619.35%
▷ Concrete classes2580.65%
▷ Final classes14.00%
Methods160
▷ Static methods21.25%
▷ Public methods10867.50%
▷ Protected methods5131.87%
▷ Private methods10.62%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/data-connector/assets/screenshot-1.png24.78KB11.02KB▼ 55.54%
modules/data-connector/assets/icon-128x128.png3.23KB1.60KB▼ 50.57%