10% responsive-flicker-widget

Code Review | Responsive Flicker Widget

WordPress plugin Responsive Flicker Widget scored10%from 54 tests.

About plugin

  • Plugin page: responsive-flicke...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Sep 5, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: freewebmentor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,817 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/responsive-flicker-widget/index.php+197
    Function create_function() is deprecated

Server metrics [RAM: ▼1.90MB] [CPU: ▼64.04ms] Passed 4 tests

A check of server-side resources used by Responsive Flicker Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.374.14 ▼40.09
Dashboard /wp-admin2.12 ▼1.195.18 ▼51.99
Posts /wp-admin/edit.php2.12 ▼1.246.10 ▼49.88
Add New Post /wp-admin/post-new.php2.12 ▼3.785.77 ▼114.18
Media Library /wp-admin/upload.php2.12 ▼1.127.18 ▼27.48

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_fwm_flickr
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Flicker Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.581.51 ▼0.3942.08 ▼0.29
Dashboard /wp-admin2,198 ▲215.61 ▼0.0699.39 ▲7.7741.82 ▼2.17
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0237.96 ▼6.0331.62 ▼6.35
Add New Post /wp-admin/post-new.php1,526 ▼823.80 ▲5.70680.75 ▲49.2852.76 ▼14.54
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0198.50 ▼6.0142.49 ▼2.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/responsive-flicker-widget/index.php+197
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_fwm_flickr

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/responsive-flicker-widget/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: photos, user, sidebar, widget, gallery...

responsive-flicker-widget/index.php 92% from 13 tests

The entry point to "Responsive Flicker Widget" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-flicker-widget.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14237118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin