84% imageshop-dam-connector

Code Review | Imageshop DAM Connector

WordPress plugin Imageshop DAM Connector scored84%from 54 tests.

About plugin

  • Plugin page: imageshop-dam-con...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Dec 5, 2022
  • Latest release: Sep 5, 2023
  • Number of updates: 10
  • Update frequency: every 27.7 days
  • Top authors: imageshop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /683 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.44MB] [CPU: ▼1.00ms] Passed 4 tests

Server-side resources used by Imageshop DAM Connector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4745.65 ▼7.93
Dashboard /wp-admin3.78 ▲0.4352.35 ▼11.51
Posts /wp-admin/edit.php3.83 ▲0.4770.14 ▲16.48
Add New Post /wp-admin/post-new.php6.33 ▲0.44104.82 ▲8.43
Media Library /wp-admin/upload.php3.65 ▲0.4247.82 ▲7.03
Imageshop DAM /wp-admin/options-general.php?page=imageshop-settings3.6245.38

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Imageshop DAM Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11516.60 ▲2.021.83 ▼0.4540.74 ▼13.50
Dashboard /wp-admin2,267 ▲796.98 ▲1.98229.07 ▲119.9642.48 ▲0.99
Posts /wp-admin/edit.php2,167 ▲756.43 ▲4.4473.37 ▲28.7529.35 ▼7.15
Add New Post /wp-admin/post-new.php1,540 ▲2118.26 ▼5.15602.54 ▼106.2237.91 ▼17.06
Media Library /wp-admin/upload.php1,463 ▲758.63 ▲4.40125.99 ▲13.7547.54 ▲0.14
Imageshop DAM /wp-admin/options-general.php?page=imageshop-settings9925.9658.2034.93

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/imageshop-dam-connector/includes/CLI/class-duplicates.php:293
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/imageshop-dam-connector/includes/CLI/class-meta.php:222
    • > PHP Fatal error
      Uncaught Error: Class 'Imageshop\\WordPress\\REST_Controller' not found in wp-content/plugins/imageshop-dam-connector/admin/settings-page.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/imageshop-dam-connector/includes/CLI/class-media.php:226

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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:
  • Contributors: Contributors not specified
The official readme.txt might help

imageshop-dam-connector/imageshop-dam-connector.php 92% from 13 tests

This is the main PHP file of "Imageshop DAM Connector" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,523 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP157389293,121
JavaScript35030343
CSS412058
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity35.82
▷ Minimum class complexity4.00
▷ Maximum class complexity180.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods128
▷ Static methods129.38%
▷ Public methods11388.28%
▷ Protected methods00.00%
▷ Private methods1511.72%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants21
▷ Global constants29.52%
▷ Class constants1990.48%
▷ Public constants210.53%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin