94% kidona-exif

Code Review | kidona-exif

WordPress plugin kidona-exif scored 94% from 54 tests.

About plugin

  • Plugin page: kidona-exif
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 5.8.1
  • First release: Oct 28, 2020
  • Latest release: Oct 28, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: dfadel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 182 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by kidona-exif
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0334.01 ▲2.39
Dashboard /wp-admin3.08 ▲0.0341.30 ▼7.43
Posts /wp-admin/edit.php3.14 ▲0.0344.34 ▼1.70
Add New Post /wp-admin/post-new.php5.45 ▲0.0291.91 ▼551.55
Media Library /wp-admin/upload.php3.03 ▲0.0232.15 ▼4.47

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

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

Browser metrics Passed 4 tests

A check of browser resources used by kidona-exif
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.91 ▲0.088.33 ▲0.1348.75 ▲2.94
Dashboard /wp-admin2,967 ▲346.06 ▲0.11133.41 ▼26.43106.23 ▼10.12
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0165.94 ▲0.0484.89 ▼9.66
Add New Post /wp-admin/post-new.php1,683 ▲1118.73 ▼0.06355.66 ▼12.51100.85 ▼11.32
Media Library /wp-admin/upload.php1,836 ▲325.47 ▲0.44130.27 ▼15.86114.13 ▼2.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Kidona\\add_action() in wp-content/plugins/kidona-exif/kidona-exif.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: exif, meta data

kidona-exif/kidona-exif.php Passed 13 tests

The main PHP script in "kidona-exif" version 1.0.1 is automatically included on every request by WordPress
89 characters long description:
Displays EXIF data for images in the Wordpress Media Library and NextGEN Manage Galleries

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin43,707 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
CSS831,5602,18343,491
JavaScript13413142
PHP1232274

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
311 PNG files occupy 0.98MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/jquery-ui-themes-1.12.1/themes/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png0.46KB0.15KB▼ 66.81%
css/jquery-ui-themes-1.12.1/themes/hot-sneaks/images/ui-bg_diagonals-small_75_ccd232_40x40.png0.38KB0.10KB▼ 74.42%
css/jquery-ui-themes-1.12.1/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%
css/jquery-ui-themes-1.12.1/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.32KB0.18KB▼ 44.00%
css/jquery-ui-themes-1.12.1/themes/humanity/images/ui-bg_highlight-hard_75_f5f5b5_1x100.png0.37KB0.16KB▼ 57.74%