10% flickr-me

Code Review | Flickr Me

WordPress plugin Flickr Me scored 10% from 54 tests.

About plugin

  • Plugin page: flickr-me
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.5.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2013
  • Latest release: May 2, 2016
  • Number of updates: 14
  • Update frequency: every 68.9 days
  • Top authors: wearepixel8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 5,347 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/flickr-me/includes/flickr-me-widget.php+100
    Methods with the same name as their class will not be constructors in a future version of PHP; wap8_Flickr_Me_Widget has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼54.16ms] Passed 4 tests

Analyzing server-side resources used by Flickr Me
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.32 ▼36.77
Dashboard /wp-admin2.16 ▼1.156.33 ▼43.41
Posts /wp-admin/edit.php2.16 ▼1.206.73 ▼39.41
Add New Post /wp-admin/post-new.php2.16 ▼3.737.29 ▼97.06
Media Library /wp-admin/upload.php2.16 ▼1.076.01 ▼24.75

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_wap8-flickr-me-widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flickr Me
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.58 ▼0.791.83 ▼0.2141.47 ▼8.56
Dashboard /wp-admin2,206 ▲245.91 ▲0.0996.10 ▼9.2337.99 ▲0.06
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0439.97 ▲4.9734.70 ▲3.86
Add New Post /wp-admin/post-new.php1,546 ▲418.22 ▲0.16597.94 ▼40.1157.34 ▼6.56
Media Library /wp-admin/upload.php1,391 ▼04.24 ▼0.04101.13 ▲4.1842.53 ▼0.73

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/flickr-me/includes/flickr-me-widget.php+100
    Methods with the same name as their class will not be constructors in a future version of PHP; wap8_Flickr_Me_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_wap8-flickr-me-widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-me/includes/flickr-me-widget.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flickr-me/flickr-me.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Flickr Me Widget), #2 (Example Flickr Me grid feed), #3 (Example Flickr Me stacked feed with title)
Please take inspiration from this readme.txt

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

The primary PHP file in "Flickr Me" version 1.0.6 is used by WordPress to initiate all plugin functionality
42 characters long description:
Add a Flickr feed to any widget ready area

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
No dangerous file extensions were detected286 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29084178
PO File1182055
CSS10053

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.50
▷ Minimum class complexity9.00
▷ Maximum class complexity20.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods342.86%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin