84% wp-filmweb-widget

Code Review | WP Filmweb Widget

WordPress plugin WP Filmweb Widget scored84%from 54 tests.

About plugin

  • Plugin page: wp-filmweb-widget
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 11, 2015
  • Latest release: Oct 21, 2016
  • Number of updates: 10
  • Update frequency: every 42.8 days
  • Top authors: mateusz.adamus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /828 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by WP Filmweb Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.31 ▼0.69
Dashboard /wp-admin3.41 ▲0.1144.27 ▼10.86
Posts /wp-admin/edit.php3.52 ▲0.1749.42 ▲3.92
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.38 ▼7.71
Media Library /wp-admin/upload.php3.33 ▲0.1037.27 ▲1.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Filmweb Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.75 ▼0.551.69 ▼0.0844.26 ▲1.15
Dashboard /wp-admin2,209 ▲214.87 ▼1.0195.90 ▼18.3339.03 ▼3.61
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0242.37 ▲6.8835.16 ▲1.40
Add New Post /wp-admin/post-new.php1,533 ▲1323.13 ▲0.11648.82 ▼58.0451.50 ▼4.24
Media Library /wp-admin/upload.php1,391 ▲64.24 ▼0.1794.78 ▼3.5141.86 ▼4.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_wp_filmweb_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-filmweb-widget/backend/WPFilmWebWidgetMovie.php
    • > /wp-content/plugins/wp-filmweb-widget/backend/WPFilmWebWidget.php
    • > /wp-content/plugins/wp-filmweb-widget/wp-filmweb-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-filmweb-widget === )
The official readme.txt is a good inspiration

wp-filmweb-widget/wp-filmweb-widget.php Passed 13 tests

The primary PHP file in "WP Filmweb Widget" version 0.5 is used by WordPress to initiate all plugin functionality
45 characters long description:
Shows basic user data from Filmweb.pl portal.

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
Good job! No executable or dangerous file extensions detected647 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP312038483
CSS1240110
PO File1201554

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity23.00
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods414.29%
▷ Public methods2071.43%
▷ Protected methods00.00%
▷ Private methods828.57%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/stars.png4.37KB2.43KB▼ 44.41%