74% wp-filmfeed

Code Review | Wp-Filmfeed

WordPress plugin Wp-Filmfeed scored74%from 54 tests.

About plugin

  • Plugin page: wp-filmfeed
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: May 14, 2013
  • Number of updates: 13
  • Update frequency: every 3.3 days
  • Top authors: r8_ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /937 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.70MB] [CPU: ▼48.37ms] Passed 4 tests

A check of server-side resources used by Wp-Filmfeed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.168.60 ▼30.04
Dashboard /wp-admin2.32 ▼1.0310.85 ▼48.24
Posts /wp-admin/edit.php2.32 ▼1.0411.38 ▼35.77
Add New Post /wp-admin/post-new.php2.32 ▼3.5711.27 ▼79.43
Media Library /wp-admin/upload.php2.32 ▼0.918.87 ▼22.92

Server storage [IO: ▲0.32MB] [DB: ▲0.31MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_wp_filmfeed_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Wp-Filmfeed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.48 ▲0.301.67 ▲0.0241.19 ▼4.67
Dashboard /wp-admin2,206 ▲186.01 ▲0.1197.53 ▼21.3339.70 ▼3.83
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0434.88 ▼1.5234.53 ▼6.73
Add New Post /wp-admin/post-new.php1,544 ▲3018.22 ▲0.66590.64 ▼38.6458.63 ▲0.65
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0494.21 ▼7.2440.81 ▼2.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in WP_Filmfeed_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_wp_filmfeed_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-filmfeed/views/widget_options.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-filmfeed/wp-filmfeed-widget.php:19
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-filmfeed/views/widget.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-filmfeed/wp-filmfeed-widget.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: cinema, movies, filmfeed, widget

wp-filmfeed/wp-filmfeed.php Passed 13 tests

Analyzing the main PHP file in "Wp-Filmfeed" version 1.0.3
15 characters long description:
Filmfeed widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected582 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP693229529
Markdown125038
CSS141115

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity37.00
▷ Minimum class complexity3.00
▷ Maximum class complexity101.00
Average method complexity5.32
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods1144.00%
▷ Protected methods00.00%
▷ Private methods1456.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png176.56KB43.82KB▼ 75.18%
screenshot-1.png98.22KB33.02KB▼ 66.39%