84% adobe-xmp-for-wp

Code Review | JSM Adobe XMP / IPTC for WordPress

WordPress plugin JSM Adobe XMP / IPTC for WordPress scored 84% from 54 tests.

About plugin

  • Plugin page: adobe-xmp-for-wp
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2013
  • Latest release: Aug 29, 2023
  • Number of updates: 638
  • Update frequency: every 6.0 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 8,682 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.08ms] Passed 4 tests

An overview of server-side resources used by JSM Adobe XMP / IPTC for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.86 ▼4.93
Dashboard /wp-admin3.31 ▲0.0147.09 ▼3.48
Posts /wp-admin/edit.php3.42 ▲0.0753.29 ▲3.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.40 ▲5.19
Media Library /wp-admin/upload.php3.23 ▲0.0139.93 ▲7.52

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

JSM Adobe XMP / IPTC for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.005.18 ▲3.4144.70 ▼0.99
Dashboard /wp-admin2,209 ▲215.85 ▼0.0193.68 ▼22.4239.70 ▼7.02
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0139.84 ▲6.3835.64 ▲0.15
Add New Post /wp-admin/post-new.php1,537 ▲423.33 ▲0.42594.07 ▼65.7954.54 ▼4.24
Media Library /wp-admin/upload.php1,382 ▼64.25 ▲0.1195.15 ▼20.9440.94 ▼8.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/adobe-xmp-for-wp/adobe-xmp-for-wp.php
    • > /wp-content/plugins/adobe-xmp-for-wp/lib/shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt is a good inspiration

adobe-xmp-for-wp/adobe-xmp-for-wp.php Passed 13 tests

The main PHP file in "JSM Adobe XMP / IPTC for WordPress" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
Provides Adobe XMP / IPTC information from Media Library or NextGEN Gallery images using a shortcode or PHP class method.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected400 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File16627

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity29.00
▷ Minimum class complexity28.00
▷ Maximum class complexity30.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods213.33%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There are no PNG files in this plugin