94% adobe-xmp-for-wp

Code Review | JSM's Adobe XMP / IPTC for WordPress

WordPress plugin JSM's Adobe XMP / IPTC for WordPress scored 94% from 54 tests.

About plugin

  • Plugin page: adobe-xmp-for-wp
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9.2
  • WordPress version: 5.9.2
  • First release: Apr 10, 2013
  • Latest release: Mar 11, 2022
  • Number of updates: 558
  • Update frequency: every 5.8 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 7,341 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼294.10ms] Passed 4 tests

An overview of server-side resources used by JSM's Adobe XMP / IPTC for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1253.86 ▲2.74
Dashboard /wp-admin3.46 ▲0.0533.87 ▲1.47
Posts /wp-admin/edit.php3.69 ▲0.0538.66 ▼0.39
Add New Post /wp-admin/post-new.php6.93 ▼0.0494.81 ▼1,179.79
Media Library /wp-admin/upload.php3.34 ▲0.0524.82 ▲2.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for JSM's Adobe XMP / IPTC for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1815.83 ▼0.076.23 ▲0.122.34 ▲0.27
Dashboard /wp-admin2,895 ▲446.13 ▼0.09117.27 ▼16.16157.45 ▼2.83
Posts /wp-admin/edit.php2,694 ▲93.36 ▲0.1365.00 ▼0.26143.59 ▲4.12
Add New Post /wp-admin/post-new.php1,719 ▲5822.53 ▲5.56411.60 ▼4.08162.72 ▲5.46
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.01155.30 ▲7.28195.27 ▲3.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/adobe-xmp-for-wp/lib/shortcode.php
    • > /wp-content/plugins/adobe-xmp-for-wp/adobe-xmp-for-wp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Tags: There are too many tags (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 file in "JSM's Adobe XMP / IPTC for WordPress" v. 1.6.0 serves as a complement to information provided in readme.txt and as the entry point to the 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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin400 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP315476269
Markdown1390104
PO File16627

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.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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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