84% hk-exif-tags

Code Review | HK Exif Tags

WordPress plugin HK Exif Tags scored84%from 54 tests.

About plugin

  • Plugin page: hk-exif-tags
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2012
  • Latest release: Apr 9, 2014
  • Number of updates: 45
  • Update frequency: every 12.2 days
  • Top authors: hamster28 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /5,957 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
The plugin installed gracefully, with no errors

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

Server-side resources used by HK Exif Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.48 ▲0.71
Dashboard /wp-admin3.33 ▲0.0346.21 ▼7.04
Posts /wp-admin/edit.php3.38 ▲0.0250.72 ▲1.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.45 ▼8.82
Media Library /wp-admin/upload.php3.25 ▲0.0233.92 ▼0.78

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by HK Exif Tags
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.331.67 ▼0.0443.84 ▼1.66
Dashboard /wp-admin2,206 ▲155.90 ▲1.0596.69 ▼7.9839.00 ▼5.75
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0138.69 ▲2.2735.92 ▼0.24
Add New Post /wp-admin/post-new.php1,528 ▼518.48 ▼4.55619.56 ▼74.9151.52 ▼10.88
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0594.02 ▼7.9641.41 ▼5.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hk-exif-tags/hk_exif_tags.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === hk-exif-tags === )
The official readme.txt might help

hk-exif-tags/hk_exif_tags.php 92% from 13 tests

The entry point to "HK Exif Tags" version 1.12 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hk-exif-tags.php" instead of "hk_exif_tags.php")

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
Success! There were no dangerous files found in this plugin115 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14346115

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.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG files were detected