10% flickr-comments

Code Review | Flickr Comments

WordPress plugin Flickr Comments scored10%from 54 tests.

About plugin

  • Plugin page: flickr-comments
  • Plugin version: 1.24
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 6.3.1
  • First release: Mar 29, 2013
  • Latest release: Nov 2, 2014
  • Number of updates: 68
  • Update frequency: every 8.6 days
  • Top authors: jdleung (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,234 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+33
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.97MB] [CPU: ▼59.97ms] Passed 4 tests

An overview of server-side resources used by Flickr Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.20 ▼37.87
Dashboard /wp-admin2.05 ▼1.305.80 ▼60.54
Posts /wp-admin/edit.php2.05 ▼1.316.05 ▼42.85
Add New Post /wp-admin/post-new.php2.05 ▼3.845.17 ▼98.60
Media Library /wp-admin/upload.php2.05 ▼1.186.23 ▼31.70
Flickr Comments /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php2.056.22

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Flickr Comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.62 ▲0.241.66 ▼0.4617.27 ▼20.69
Dashboard /wp-admin2,222 ▲194.87 ▼1.00104.56 ▲4.1340.98 ▼0.31
Posts /wp-admin/edit.php2,104 ▲72.04 ▼0.0038.34 ▼2.2437.67 ▲2.41
Add New Post /wp-admin/post-new.php1,548 ▲323.45 ▲0.10660.73 ▼5.92105.63 ▲35.51
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.01111.98 ▼1.9249.82 ▼0.27
Flickr Comments /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php8002.0225.2429.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+33
    date_default_timezone_set(): Timezone ID '' is invalid
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • flickr_comments_config
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
    • > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+33
    date_default_timezone_set(): Timezone ID '' is invalid
    • > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
    • > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+39
    Undefined index: frob
    • > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
    • > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+64
    Undefined index: flickr_comments_API
    • > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
    • > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+85
    Undefined index: manual_update
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
    • > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+130
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flickr-comments/flickr-comments.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

flickr-comments/flickr-comments.php Passed 13 tests

The primary PHP file in "Flickr Comments" version 1.24 is used by WordPress to initiate all plugin functionality
116 characters long description:
Retrieves comments from your Flickr account to your Wordpress photoblog in a specified Time Frame and Time Interval.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,565 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23833621,565

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity100.00
▷ Minimum class complexity13.00
▷ Maximum class complexity187.00
Average method complexity1.99
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods201
▷ Static methods00.00%
▷ Public methods201100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.58MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot/screenshot-4.png106.44KB36.31KB▼ 65.88%
screenshot/screenshot-1.png105.47KB37.46KB▼ 64.49%
screenshot/screenshot-6.png113.85KB32.69KB▼ 71.28%
screenshot/screenshot-3.png47.64KB17.41KB▼ 63.45%
screenshot/screenshot-5.png145.89KB47.11KB▼ 67.71%