83% wp-film-studio

Code Review | WP Film Studio - WordPress Movie Maker/Production Plugin

WordPress plugin WP Film Studio - WordPress Movie Maker/Production Plugin scored83%from 54 tests.

About plugin

  • Plugin page: wp-film-studio
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 27, 2018
  • Latest release: Aug 7, 2023
  • Number of updates: 37
  • Update frequency: every 48.0 days
  • Top authors: devitemsllc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /15,440 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.53MB] [CPU: ▼1.10ms] 75% from 4 tests

An overview of server-side resources used by WP Film Studio - WordPress Movie Maker/Production Plugin
Please fix the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,322.30ms on /wp-admin/admin.php?page=wpfilm-recommendation)
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5138.62 ▼2.12
Dashboard /wp-admin3.90 ▲0.6050.46 ▼1.32
Posts /wp-admin/edit.php3.95 ▲0.5959.30 ▲15.03
Add New Post /wp-admin/post-new.php6.39 ▲0.5191.36 ▼5.08
Media Library /wp-admin/upload.php3.73 ▲0.5139.04 ▲4.11
WP Film Options /wp-admin/admin.php?page=wp_film_options3.7338.59
Trailer /wp-admin/edit.php?post_type=wpfilm_trailer3.8741.43
Campaigns /wp-admin/edit.php?post_type=wpcampaign3.8743.20
Movie /wp-admin/edit.php?post_type=wpfilm_movie3.8741.29
Recommendations /wp-admin/admin.php?page=wpfilm-recommendation8.101,322.30

Server storage [IO: ▲7.21MB] [DB: ▲0.67MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
settings
pro_themes
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

WP Film Studio - WordPress Movie Maker/Production Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,120 ▲37415.71 ▲1.069.57 ▲7.8138.27 ▼6.99
Dashboard /wp-admin2,414 ▲2326.64 ▲0.76135.68 ▲15.1643.98 ▼11.33
Posts /wp-admin/edit.php2,334 ▲2453.71 ▲1.7061.00 ▲26.5942.36 ▲5.78
Add New Post /wp-admin/post-new.php1,427 ▼9520.62 ▼2.57505.95 ▼181.3637.49 ▼22.67
Media Library /wp-admin/upload.php1,470 ▲824.35 ▲0.1384.55 ▼23.0245.27 ▼0.70
WP Film Options /wp-admin/admin.php?page=wp_film_options1,3203.85100.0330.24
Trailer /wp-admin/edit.php?post_type=wpfilm_trailer1,3213.4751.6932.40
Campaigns /wp-admin/edit.php?post_type=wpcampaign1,3063.5648.2234.52
Movie /wp-admin/edit.php?post_type=wpfilm_movie1,3233.4851.4934.57
Recommendations /wp-admin/admin.php?page=wpfilm-recommendation3,1213.4748.2349.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • pro_themes
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-film-studio/admin/wpfilm_custom-post-type.php:278
    • > PHP Fatal error
      Uncaught Error: Class 'WPFilm_Settings_API' not found in wp-content/plugins/wp-film-studio/includes/plugin-options.php:17
    • > PHP Fatal error
      require_once(): Failed opening required 'WPFILM_ADDONS_PL_PATHadmin/admin-init.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-film-studio/admin/init.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-film-studio/includes/single-wpcampaign.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-film-studio/admin/wpfilm_custom-metabox.php:23
    • > PHP Warning
      require_once(WPFILM_ADDONS_PL_PATHadmin/admin-init.php): failed to open stream: No such file or directory in wp-content/plugins/wp-film-studio/admin/init.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-film-studio/includes/archive-wpfilm_movie.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-film-studio/admin/admin-init.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-film-studio/includes/single-wpfilm_movie.php:10
    • > PHP Warning
      Use of undefined constant WPFILM_ADDONS_PL_PATH - assumed 'WPFILM_ADDONS_PL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-film-studio/admin/init.php on line 2

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: film production, elementor, movie maker, trailer, film studio

wp-film-studio/wpfilm-studio.php 85% from 13 tests

"WP Film Studio - WordPress Movie Maker/Production Plugin" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-film-studio.php" instead of "wpfilm-studio.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected10,390 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG2004,776
PHP165543724,400
CSS461291,077
JavaScript53652137

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity33.17
▷ Minimum class complexity3.00
▷ Maximum class complexity69.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods62
▷ Static methods11.61%
▷ Public methods5893.55%
▷ Protected methods46.45%
▷ Private methods00.00%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/extensions/cf7-extensions-pro.png8.57KB0.00KB▼ 100.00%
(invalid) assets/images/extensions/ht-click-to-call.png1.70KB0.00KB▼ 100.00%
assets/images/extensions/just-tables-pro.png1.02KB1.05KB0.00%
assets/images/extensions/ht-slider-addons-pro.png6.41KB4.35KB▼ 32.23%
assets/images/extensions/swatchly-pro.png13.99KB5.41KB▼ 61.37%