84% mobile-friendly-flickr-slideshow

Code Review | Responsive Flickr Slideshow

WordPress plugin Responsive Flickr Slideshow scored84%from 54 tests.

About plugin

  • Plugin page: mobile-friendly-f...
  • Plugin version: 2.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0.2
  • WordPress version: 6.3.1
  • First release: May 27, 2014
  • Latest release: Sep 15, 2022
  • Number of updates: 56
  • Update frequency: every 54.2 days
  • Top authors: robert.peake (75%)robert@msia.org (26.79%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /10,788 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.15ms] Passed 4 tests

Analyzing server-side resources used by Responsive Flickr Slideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.48 ▼3.34
Dashboard /wp-admin3.42 ▲0.1251.34 ▲0.46
Posts /wp-admin/edit.php3.53 ▲0.1846.07 ▼1.08
Add New Post /wp-admin/post-new.php6.00 ▲0.1180.49 ▼12.65
Media Library /wp-admin/upload.php3.34 ▲0.1135.86 ▲0.87
Flickr Slideshow /wp-admin/options-general.php?page=mobile-friendly-flickr-slideshow/admin.php3.3331.58

Server storage [IO: ▲0.75MB] [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: 23 new files
Database: no new tables, 16 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Flickr Slideshow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.79 ▲0.111.79 ▼0.2842.53 ▲0.65
Dashboard /wp-admin2,213 ▲254.88 ▼1.00111.75 ▼7.8642.46 ▼4.34
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0233.84 ▼8.7733.03 ▼3.05
Add New Post /wp-admin/post-new.php1,536 ▲123.30 ▲0.18639.00 ▼21.0957.60 ▼4.03
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.0296.18 ▼6.9141.04 ▼4.19
Flickr Slideshow /wp-admin/options-general.php?page=mobile-friendly-flickr-slideshow/admin.php9932.0336.0334.73

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 15 options
    • fshow_default_photosetid
    • db_upgraded
    • fshow_default_height
    • widget_recent-posts
    • theysaidso_admin_options
    • fshow_performance_mode
    • fshow_default_thumburl
    • widget_theysaidso_widget
    • fshow_flickr_cache_time
    • fshow_default_width
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mobile-friendly-flickr-slideshow/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: flickr, mobile, responsive, slideshow

mobile-friendly-flickr-slideshow/mobile-friendly-flickr-slideshow.php 85% from 13 tests

The main PHP file in "Responsive Flickr Slideshow" ver. 2.5.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Please keep the plugin description shorter than 140 characters (currently 176 characters long)

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 detected8,133 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PO File1184255

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity32.00
▷ Minimum class complexity26.00
▷ Maximum class complexity38.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods310.00%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
No PNG images were found in this plugin