79% blipfoto-importer

Code Review | Blipfoto importer

WordPress plugin Blipfoto importer scored79%from 54 tests.

About plugin

  • Plugin page: blipfoto-importer
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5
  • WordPress version: 6.3.1
  • First release: Mar 18, 2015
  • Latest release: Apr 10, 2016
  • Number of updates: 6
  • Update frequency: every 64.8 days
  • Top authors: lumpysimon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by Blipfoto importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.53 ▲2.86
Dashboard /wp-admin3.32 ▲0.0252.20 ▲3.14
Posts /wp-admin/edit.php3.43 ▲0.0846.96 ▼2.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.38 ▼20.53
Media Library /wp-admin/upload.php3.24 ▲0.0235.70 ▲3.12
Blipfoto Importer /wp-admin/tools.php?page=blipfoto-import3.2034.18
Blipfoto Importer /wp-admin/options-general.php?page=blipfoto-importer-settings3.1929.36

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Blipfoto importer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.24 ▼1.061.82 ▼0.1043.40 ▲0.71
Dashboard /wp-admin2,211 ▲235.83 ▼0.0498.15 ▼7.7836.33 ▼7.53
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0534.71 ▼3.5136.68 ▲3.24
Add New Post /wp-admin/post-new.php1,540 ▲2323.10 ▲5.50685.57 ▲81.1252.70 ▼5.36
Media Library /wp-admin/upload.php1,396 ▲84.20 ▼0.06103.42 ▲1.3146.35 ▲2.63
Blipfoto Importer /wp-admin/tools.php?page=blipfoto-import7622.0226.9823.68
Blipfoto Importer /wp-admin/options-general.php?page=blipfoto-importer-settings1,0292.0221.7927.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • blipfoto-importer

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
    • > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+157
    Undefined index: username
    • > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
    • > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+164
    Undefined index: client-id
    • > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
    • > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+171
    Undefined index: client-secret
    • > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
    • > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+178
    Undefined index: access-token
    • > GET request to /wp-admin/options-general.php?page=blipfoto-importer-settings
    • > Notice in wp-content/plugins/blipfoto-importer/lib/settings.php+216
    Undefined index: auto-insert

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Blipfoto\\Exceptions\\BaseException' not found in wp-content/plugins/blipfoto-importer/lib/Blipfoto/Exceptions/OAuthException.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Blipfoto\\Exceptions\\BaseException' not found in wp-content/plugins/blipfoto-importer/lib/Blipfoto/Exceptions/ApiResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Blipfoto\\Exceptions\\BaseException' not found in wp-content/plugins/blipfoto-importer/lib/Blipfoto/Exceptions/NetworkException.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Blipfoto\\Exceptions\\BaseException' not found in wp-content/plugins/blipfoto-importer/lib/Blipfoto/Exceptions/InvalidResponseException.php:11

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: journal, import, photography, blipfoto, blipfotocom

blipfoto-importer/blipfoto-importer.php Passed 13 tests

This is the main PHP file of "Blipfoto importer" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Import entries from a Blipfoto journal into your WordPress website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected698 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP14341220651
Markdown128047

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods48
▷ Static methods48.33%
▷ Public methods4389.58%
▷ Protected methods24.17%
▷ Private methods36.25%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants7
▷ Global constants228.57%
▷ Class constants571.43%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin