58% lumiere-movies

Code Review | Lumiere Movies

WordPress plugin Lumiere Movies scored58%from 54 tests.

About plugin

  • Plugin page: lumiere-movies
  • Plugin version: 3.11.5
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4.1
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: Nov 18, 2023
  • Number of updates: 94
  • Update frequency: every 9.7 days
  • Top authors: psykonevro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,021 total downloads

Benchmarks

Plugin footprint 48% 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.01MB] [CPU: ▼6.43ms] Passed 4 tests

A check of server-side resources used by Lumiere Movies
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.98 ▼1.52
Dashboard /wp-admin3.31 ▼0.0443.82 ▼14.97
Posts /wp-admin/edit.php3.36 ▲0.0045.16 ▲1.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.25 ▼10.77
Media Library /wp-admin/upload.php3.23 ▲0.0032.33 ▲1.54

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 386 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Lumiere Movies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.29 ▲0.051.69 ▼0.1044.69 ▲1.46
Dashboard /wp-admin2,195 ▲185.49 ▼0.1586.69 ▼17.8638.56 ▼6.54
Posts /wp-admin/edit.php2,097 ▼31.96 ▲0.0138.65 ▲2.1936.23 ▲1.30
Add New Post /wp-admin/post-new.php1,526 ▼323.42 ▲0.13594.72 ▼112.8644.89 ▼13.54
Media Library /wp-admin/upload.php1,400 ▲64.17 ▼0.0794.49 ▼2.5741.19 ▼1.34

Uninstaller [IO: ▲3.96MB] [DB: ▲0.01MB] 25% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User error in wp-content/plugins/lumiere-movies/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
  • Incomplete uninstall procedure, leaving 386 files (3.96MB) in the plugin directory
    • (new file) CHANGELOG.md
    • (new file) assets/css/lumiere-admin.min.css
    • (new file) assets/css/lumiere-highslide.min.css
    • (new file) SUPPORT.md
    • (new file) LICENSE.txt
    • (new file) README.txt
    • (new file) ACKNOWLEDGMENTS.md
    • (new file) COPYING.txt
    • (new file) assets/css/lumiere-extrapages-oceanwpfixes.min.css
    • (new file) assets/css/lumiere-bootstrap-custom.min.css
    • ...
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_recent-comments
    • imdbWidgetOptions
    • imdbCacheOptions
    • can_compress_scripts
    • imdbAdminOptions
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/lumiere-movies/class/class-settings.php
  • 173× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/lumiere-movies/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:34
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/lumiere-movies/class/alteration/class-virtual-page.php on line 47
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/lumiere-movies/vendor/psr/log/src/NullLogger.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/lumiere-movies/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/lumiere-movies/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/lumiere-movies/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/lumiere-movies/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/lumiere-movies/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/lumiere-movies/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/lumiere-movies/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: internet-movie-database, imdb, actor, director, cinema...

lumiere-movies/lumiere-movies.php 92% from 13 tests

"Lumiere Movies" version 3.11.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

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
Success! There were no dangerous files found in this plugin34,684 lines of code in 277 files:
LanguageFilesBlank linesComment linesLines of code
PHP2237,08513,76922,678
PO File63,1506,5219,388
Markdown932701,426
CSS173188827
JSON200345
JavaScript2005020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.56
▷ Minimum class complexity1.00
▷ Maximum class complexity391.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces26
Interfaces17
Traits9
Classes192
▷ Abstract classes105.21%
▷ Concrete classes18294.79%
▷ Final classes31.65%
Methods1,427
▷ Static methods855.96%
▷ Public methods98569.03%
▷ Protected methods25818.08%
▷ Private methods18412.89%
Functions40
▷ Named functions25.00%
▷ Anonymous functions3895.00%
Constants186
▷ Global constants00.00%
▷ Class constants186100.00%
▷ Public constants15482.80%

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
48 PNG files occupy 0.22MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/highslide/graphics/outlines/custom.png4.83KB1.60KB▼ 66.84%
assets/pics/imdb-link.png0.56KB0.56KB0.00%
assets/pics/widget-preview.png12.60KB7.31KB▼ 41.96%
assets/pics/menu/admin-cache-options.png0.67KB0.73KB0.00%
assets/pics/favicon/favicon-32x32.png0.88KB1.02KB0.00%