68% flickr-set-slideshows

Code Review | Flickr set slideshows

WordPress plugin Flickr set slideshows scored 68% from 54 tests.

About plugin

  • Plugin page: flickr-set-slides...
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-3.9.1
  • WordPress version: 5.8.1
  • First release: Feb 29, 2012
  • Latest release: Jul 3, 2014
  • Number of updates: 35
  • Update frequency: every 24.6 days
  • Top authors: Dourou (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active / 35,759 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼142.72ms] Passed 4 tests

Server-side resources used by Flickr set slideshows
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1123.88 ▲2.60
Dashboard /wp-admin3.17 ▲0.1130.60 ▼5.64
Posts /wp-admin/edit.php3.29 ▲0.1830.20 ▲1.14
Add New Post /wp-admin/post-new.php5.54 ▲0.1070.56 ▼568.70
Media Library /wp-admin/upload.php3.12 ▲0.1223.99 ▲2.32
Flickr set slideshows /wp-admin/options-general.php?page=flickr_set_galleries_options3.0722.26
Flickr Set Slideshows /wp-admin/admin.php?page=flickr_set_galleries_manager3.0922.40
Add new /wp-admin/admin.php?page=flickr_set_galleries_new3.0719.30

Server storage [IO: ▲0.62MB] [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: 18 new files
Database: 1 new table, 1 new option
New tables
wp_fsg_galleries
New WordPress options
fsg_db_version

Browser metrics Passed 4 tests

Flickr set slideshows: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10315.62 ▼0.194.97 ▼0.1375.64 ▲1.00
Dashboard /wp-admin2,972 ▲766.13 ▼0.05114.37 ▼18.73186.29 ▲12.31
Posts /wp-admin/edit.php2,794 ▲543.24 ▲0.0261.01 ▼1.47135.34 ▼3.81
Add New Post /wp-admin/post-new.php3,768 ▲11519.01 ▲0.00418.92 ▼14.55177.70 ▼0.52
Media Library /wp-admin/upload.php1,788 ▲365.53 ▼0.00129.61 ▼11.81213.05 ▲22.10
Flickr set slideshows /wp-admin/options-general.php?page=flickr_set_galleries_options1,1112.3952.55112.21
Flickr Set Slideshows /wp-admin/admin.php?page=flickr_set_galleries_manager1,0772.6154.2999.62
Add new /wp-admin/admin.php?page=flickr_set_galleries_new1,0832.4252.66102.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_fsg_galleries
  • The uninstall procedure has failed, leaving 1 option in the database
    • fsg_db_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=flickr_set_galleries_new
    • > Notice in wp-content/plugins/flickr-set-slideshows/flickr-set-slideshows-new.php+7
    Trying to access array offset on value of type bool

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-set-slideshows/flickr-set-slideshows-listing.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-set-slideshows/flickr-set-slideshows-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-set-slideshows/flickr-set-slideshows-new.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-set-slideshows/flickr-set-slideshows-listing.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (A Flickr slideshow in a blog post.), #2 (Flickr set slideshows settings page.), #3 (Slideshow creation page.), #4 (Slideshow listing and edition page.)
The official readme.txt is a good inspiration

flickr-set-slideshows/flickr-set-slideshows.php Passed 13 tests

Analyzing the main PHP file in "Flickr set slideshows" version 0.9
77 characters long description:
Lets you easily embed slideshows of your flickr sets in your posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin869 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP559109658
JavaScript11314178
CSS17027
XML1016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.58MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png72.14KB25.02KB▼ 65.32%
screenshot-2.png55.63KB18.32KB▼ 67.07%
screenshot-1.png203.10KB67.50KB▼ 66.77%
icon_big.png1.53KB1.51KB▼ 0.83%
flickr_username.png11.89KB5.19KB▼ 56.35%