77% flickree

Code Review | flickree

WordPress plugin flickree scored 77% from 54 tests.

About plugin

  • Plugin page: flickree
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1+
  • WordPress version: 6.3.1
  • First release: May 5, 2012
  • Latest release: Nov 14, 2012
  • Number of updates: 35
  • Update frequency: every 5.6 days
  • Top authors: global_1981 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,694 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.10ms] Passed 4 tests

This is a short check of server-side resources used by flickree
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.82 ▼9.35
Dashboard /wp-admin3.32 ▲0.0245.90 ▼1.75
Posts /wp-admin/edit.php3.44 ▲0.0846.02 ▼3.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.16 ▼8.48
Media Library /wp-admin/upload.php3.25 ▲0.0234.62 ▼2.95
flickree /wp-admin/options-general.php?page=flickree/index.php3.1931.59

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for flickree
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲15713.66 ▼1.014.74 ▲2.9937.84 ▼9.69
Dashboard /wp-admin2,212 ▲245.83 ▲0.9596.99 ▼0.7338.54 ▼5.21
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0233.58 ▼3.7034.14 ▲1.19
Add New Post /wp-admin/post-new.php1,535 ▲221.87 ▼1.24663.50 ▼6.3955.53 ▲0.27
Media Library /wp-admin/upload.php1,394 ▲34.19 ▲0.0096.74 ▼4.5843.17 ▲2.19
flickree /wp-admin/options-general.php?page=flickree/index.php8202.2025.4224.11

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=flickree/index.php
    • > Notice in wp-content/plugins/flickree/Admin.php+122
    Undefined index: apikey
    • > GET request to /wp-admin/options-general.php?page=flickree/index.php
    • > Notice in wp-content/plugins/flickree/Admin.php+123
    Undefined index: report

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
Please fix the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Group.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Photoset.class.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flickree/index.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Photo.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Gallery.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Search.class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === flickree === )
  • Tested up to: Invalid plugin version format
  • Screenshots: Please add images for these screenshots: #1 (The flickree editor button), #2 (The editor dialog for inserting a single photo), #3 (The editor dialog for inserting photos from a photoset), #4 (The editor dialog for inserting photos from a gallery), #5 (The editor dialog for inserting photos from a group), #6 (The editor dialog for inserting photos based on a text and or tag search)
The official readme.txt is a good inspiration

flickree/index.php 92% from 13 tests

The main PHP file in "flickree" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flickree.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,319 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP14222494950
HTML1110167
CSS140157
JavaScript20133
Mustache40012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.71
▷ Minimum class complexity1.00
▷ Maximum class complexity106.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods3658.06%
▷ Protected methods2641.94%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants82
▷ Global constants56.10%
▷ Class constants7793.90%
▷ Public constants77100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png23.44KB7.64KB▼ 67.40%
screenshot-5.png23.15KB7.57KB▼ 67.32%
screenshot-3.png23.66KB7.78KB▼ 67.12%
screenshot-6.png23.81KB7.78KB▼ 67.32%
tinymce.png0.28KB0.42KB0.00%