84% update-post-with-exif-data

Code Review | Update Post with EXIF data

WordPress plugin Update Post with EXIF data scored84%from 54 tests.

About plugin

  • Plugin page: update-post-with-...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2015
  • Latest release: Sep 30, 2016
  • Number of updates: 11
  • Update frequency: every 231.1 days
  • Top authors: markhowellsmead (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.61ms] Passed 4 tests

This is a short check of server-side resources used by Update Post with EXIF data
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.65 ▼11.82
Dashboard /wp-admin3.37 ▲0.0646.49 ▼3.47
Posts /wp-admin/edit.php3.42 ▲0.0647.57 ▼0.80
Add New Post /wp-admin/post-new.php5.95 ▲0.06100.29 ▲1.64
Media Library /wp-admin/upload.php3.29 ▲0.0634.37 ▲2.96

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

Filesystem and database footprint
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
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Update Post with EXIF data: 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.081.57 ▼0.5139.47 ▼13.05
Dashboard /wp-admin2,203 ▲155.86 ▲0.9599.30 ▼16.1541.10 ▼4.27
Posts /wp-admin/edit.php2,092 ▲32.16 ▲0.1738.84 ▲5.5436.78 ▼3.20
Add New Post /wp-admin/post-new.php1,520 ▼023.22 ▼0.11680.34 ▼26.6954.24 ▼6.32
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0297.29 ▼10.8744.15 ▲0.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MHM\\UpdatePostWithExifData\\add_action() in wp-content/plugins/update-post-with-exif-data/index.php:21

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: iptc, location, geoencoding, post_meta, taxonomy...

update-post-with-exif-data/index.php 85% from 13 tests

"Update Post with EXIF data" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("update-post-with-exif-data.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 200 characters long)

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 plugin192 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15659192

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin