84% simple-flickr-set

Code Review | Simple Flickr Set

WordPress plugin Simple Flickr Set scored84%from 54 tests.

About plugin

  • Plugin page: simple-flickr-set
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.0
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Sep 10, 2014
  • Number of updates: 8
  • Update frequency: every 22.0 days
  • Top authors: claremontmckennacollege (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,455 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼3.79ms] Passed 4 tests

Server-side resources used by Simple Flickr Set
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.36 ▼3.13
Dashboard /wp-admin3.33 ▲0.0244.67 ▼3.89
Posts /wp-admin/edit.php3.38 ▲0.0246.26 ▼0.30
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.35 ▼7.85
Media Library /wp-admin/upload.php3.25 ▲0.0235.11 ▲2.09

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Simple Flickr Set: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲16213.60 ▼0.775.76 ▲3.9043.35 ▼4.91
Dashboard /wp-admin2,222 ▲314.86 ▼0.0397.92 ▼4.8838.78 ▼4.97
Posts /wp-admin/edit.php2,105 ▲162.00 ▲0.0238.03 ▼2.0835.37 ▼1.49
Add New Post /wp-admin/post-new.php1,555 ▲4118.52 ▲0.98605.80 ▼64.9764.98 ▲16.00
Media Library /wp-admin/upload.php1,407 ▲224.23 ▼0.0595.70 ▼3.2642.89 ▲0.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
Good news, no errors were detected

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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_sfs_api() in wp-content/plugins/simple-flickr-set/sfs-admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-flickr-set/simple-flickr-set.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

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

"Simple Flickr Set" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
129 characters long description:
This allows the user to embed auto-playing looping Flickr galleries with a simple shortcode using javascript and css (no flash!).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin311 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35245294
JavaScript17017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin