84% quick-flickr-widget

Code Review | Quick Flickr Widget

WordPress plugin Quick Flickr Widget scored84%from 54 tests.

About plugin

  • Plugin page: quick-flickr-widget
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2009
  • Latest release: Jul 25, 2012
  • Number of updates: 33
  • Update frequency: every 37.6 days
  • Top authors: kovshenin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /56,707 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.08ms] Passed 4 tests

Analyzing server-side resources used by Quick Flickr Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.69 ▼2.02
Dashboard /wp-admin3.35 ▲0.0053.19 ▼14.52
Posts /wp-admin/edit.php3.40 ▲0.0451.12 ▲3.42
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.71 ▼26.44
Media Library /wp-admin/upload.php3.27 ▲0.0438.99 ▼1.35

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Quick Flickr Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.10 ▼0.091.67 ▲0.0043.73 ▲0.13
Dashboard /wp-admin2,195 ▲185.63 ▲0.0699.32 ▲13.8049.45 ▲12.13
Posts /wp-admin/edit.php2,097 ▼02.01 ▲0.0636.45 ▲0.2335.26 ▲0.05
Add New Post /wp-admin/post-new.php1,526 ▼222.99 ▲0.10654.05 ▼11.9356.22 ▼16.55
Media Library /wp-admin/upload.php1,400 ▲34.29 ▲0.07104.43 ▼4.5846.27 ▼0.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_quick-flickr-widget

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quick-flickr-widget/quick_flickr_widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Widget configuration), #2 (In action)
Please take inspiration from this readme.txt

quick-flickr-widget/quick_flickr_widget.php 92% from 13 tests

The main PHP file in "Quick Flickr Widget" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quick-flickr-widget.php" instead of "quick_flickr_widget.php")

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
Everything looks great! No dangerous files found in this plugin152 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

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.29
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.26MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.33KB8.47KB▼ 67.83%
screenshot-2.png238.87KB74.99KB▼ 68.61%