74% wplr-sync

Code Review | Photo Engine (Media Organizer & Lightroom)

WordPress plugin Photo Engine (Media Organizer & Lightroom) scored74%from 54 tests.

About plugin

  • Plugin page: wplr-sync
  • Plugin version: 6.2.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2014
  • Latest release: Sep 8, 2023
  • Number of updates: 291
  • Update frequency: every 11.1 days
  • Top authors: TigrouMeow (100%)

Code review

54 tests

User reviews

194 reviews

Install metrics

3,000+ active /203,963 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.82MB] [CPU: ▲8.08ms] Passed 4 tests

Analyzing server-side resources used by Photo Engine (Media Organizer & Lightroom)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.7550.09 ▲7.60
Dashboard /wp-admin4.15 ▲0.8067.62 ▲7.49
Posts /wp-admin/edit.php4.20 ▲0.8470.11 ▲23.13
Add New Post /wp-admin/post-new.php6.75 ▲0.8797.51 ▲1.07
Media Library /wp-admin/upload.php4.11 ▲0.8853.41 ▲16.15
Photo Engine /wp-admin/admin.php?page=wplr_sync_settings4.0445.31
Dashboard /wp-admin/admin.php?page=meowapps-main-menu4.2462.59

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 54 new files
Database: 4 new tables, 6 new options
New tables
wp_lrsync
wp_lrsync_collections
wp_lrsync_relations
wp_lrsync_meta
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Photo Engine (Media Organizer & Lightroom)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17114.35 ▲0.011.82 ▲0.2242.82 ▲1.83
Dashboard /wp-admin2,335 ▲1586.06 ▲0.46115.98 ▲30.2341.20 ▲1.17
Posts /wp-admin/edit.php2,243 ▲1613.15 ▲1.1257.01 ▲21.2035.36 ▲1.96
Add New Post /wp-admin/post-new.php1,656 ▲13023.81 ▲0.46687.31 ▲21.1034.92 ▼16.28
Media Library /wp-admin/upload.php1,559 ▲1595.51 ▲1.34106.46 ▲8.5545.25 ▲1.60
Photo Engine /wp-admin/admin.php?page=wplr_sync_settings1,2014.3498.8241.03
Dashboard /wp-admin/admin.php?page=meowapps-main-menu5,3212.8939.5448.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables detected upon uninstall: 4 tables
    • wp_lrsync_collections
    • wp_lrsync_meta
    • wp_lrsync_relations
    • wp_lrsync
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MeowCommon_Admin' not found in wp-content/plugins/wplr-sync/classes/admin.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wplr-sync/classes/error.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wplr-sync/classes/error.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wplr-sync/classes/init.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-IXR.php' (include_path='.:/usr/share/php') in wp-content/plugins/wplr-sync/classes/error.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-IXR.php' (include_path='.:/usr/share/php') in wp-content/plugins/wplr-sync/classes/error.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wplr-sync/wplr-sync.php:22
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wplr-sync/classes/error.php on line 3
    • > PHP Warning
      require_once(ABSPATHWPINC/class-IXR.php): failed to open stream: No such file or directory in wp-content/plugins/wplr-sync/classes/error.php on line 3
    • > PHP Warning
      require_once(ABSPATHWPINC/class-IXR.php): failed to open stream: No such file or directory in wp-content/plugins/wplr-sync/classes/error.php on line 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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: A description for screenshot #5 is missing in wplr-sync/assets to your readme.txt
You can take inspiration from this readme.txt

wplr-sync/wplr-sync.php Passed 13 tests

The primary PHP file in "Photo Engine (Media Organizer & Lightroom)" version 6.2.8 is used by WordPress to initiate all plugin functionality
105 characters long description:
Synchronize and maintain your photos, collections, keywords and metadata between Lightroom and WordPress.

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 plugin10,151 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP217405165,792
JavaScript255112013,779
PO File1164212510
Markdown129070

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity43.80
▷ Minimum class complexity1.00
▷ Maximum class complexity316.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods316
▷ Static methods185.70%
▷ Public methods30897.47%
▷ Protected methods00.00%
▷ Private methods82.53%
Functions13
▷ Named functions430.77%
▷ Anonymous functions969.23%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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