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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 38.62 ▼2.12 |
Dashboard /wp-admin | 3.90 ▲0.60 | 50.46 ▼1.32 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 59.30 ▲15.03 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 91.36 ▼5.08 |
Media Library /wp-admin/upload.php | 3.73 ▲0.51 | 39.04 ▲4.11 |
WP Film Options /wp-admin/admin.php?page=wp_film_options | 3.73 | 38.59 |
Trailer /wp-admin/edit.php?post_type=wpfilm_trailer | 3.87 | 41.43 |
Campaigns /wp-admin/edit.php?post_type=wpcampaign | 3.87 | 43.20 |
Movie /wp-admin/edit.php?post_type=wpfilm_movie | 3.87 | 41.29 |
Recommendations /wp-admin/admin.php?page=wpfilm-recommendation | 8.10 | 1,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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,120 ▲374 | 15.71 ▲1.06 | 9.57 ▲7.81 | 38.27 ▼6.99 |
Dashboard /wp-admin | 2,414 ▲232 | 6.64 ▲0.76 | 135.68 ▲15.16 | 43.98 ▼11.33 |
Posts /wp-admin/edit.php | 2,334 ▲245 | 3.71 ▲1.70 | 61.00 ▲26.59 | 42.36 ▲5.78 |
Add New Post /wp-admin/post-new.php | 1,427 ▼95 | 20.62 ▼2.57 | 505.95 ▼181.36 | 37.49 ▼22.67 |
Media Library /wp-admin/upload.php | 1,470 ▲82 | 4.35 ▲0.13 | 84.55 ▼23.02 | 45.27 ▼0.70 |
WP Film Options /wp-admin/admin.php?page=wp_film_options | 1,320 | 3.85 | 100.03 | 30.24 |
Trailer /wp-admin/edit.php?post_type=wpfilm_trailer | 1,321 | 3.47 | 51.69 | 32.40 |
Campaigns /wp-admin/edit.php?post_type=wpcampaign | 1,306 | 3.56 | 48.22 | 34.52 |
Movie /wp-admin/edit.php?post_type=wpfilm_movie | 1,323 | 3.48 | 51.49 | 34.57 |
Recommendations /wp-admin/admin.php?page=wpfilm-recommendation | 3,121 | 3.47 | 48.23 | 49.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 4,776 |
PHP | 16 | 554 | 372 | 4,400 |
CSS | 4 | 61 | 29 | 1,077 |
JavaScript | 5 | 36 | 52 | 137 |
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 code | 0.29 |
Average class complexity | 33.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 1 | 1.61% |
▷ Public methods | 58 | 93.55% |
▷ Protected methods | 4 | 6.45% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/extensions/cf7-extensions-pro.png | 8.57KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/extensions/ht-click-to-call.png | 1.70KB | 0.00KB | ▼ 100.00% |
assets/images/extensions/just-tables-pro.png | 1.02KB | 1.05KB | 0.00% |
assets/images/extensions/ht-slider-addons-pro.png | 6.41KB | 4.35KB | ▼ 32.23% |
assets/images/extensions/swatchly-pro.png | 13.99KB | 5.41KB | ▼ 61.37% |