83% image-exif

Code Review | Image Exif

WordPress plugin Image Exif scored83%from 54 tests.

About plugin

  • Plugin page: image-exif
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Mar 5, 2015
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: celery94 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,638 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.28ms] Passed 4 tests

This is a short check of server-side resources used by Image Exif
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0145.70 ▲0.37
Dashboard /wp-admin3.36 ▼0.0348.31 ▼23.54
Posts /wp-admin/edit.php3.41 ▲0.0147.31 ▼1.80
Add New Post /wp-admin/post-new.php5.94 ▲0.0191.19 ▼12.16
Media Library /wp-admin/upload.php3.29 ▲0.0140.89 ▲2.22

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Image Exif
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18113.64 ▼0.7114.65 ▲11.5941.59 ▼3.36
Dashboard /wp-admin2,189 ▲155.54 ▲0.0184.68 ▼18.3339.93 ▼2.12
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0335.52 ▲0.8835.44 ▼0.60
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▼0.50644.69 ▼43.7957.93 ▼7.12
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0398.39 ▼17.7446.27 ▼3.01

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-exif/imgexif.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Main View) image required
  • Plugin Name: You should set the name of your plugin on the first line ( === image-exif === )
The official readme.txt is a good inspiration

image-exif/imgexif.php 92% from 13 tests

The main file in "Image Exif" v. 0.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("image-exif.php" instead of "imgexif.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected182 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS18062
PHP1131054
JavaScript113245
Markdown111021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/btn_close.png0.43KB0.44KB0.00%