84% wp-extraexif

Code Review | wp-extraexif

WordPress plugin wp-extraexif scored84%from 54 tests.

About plugin

  • Plugin page: wp-extraexif
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2017
  • Latest release: Aug 11, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: cadeyrn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /709 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by wp-extraexif
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.85 ▼5.10
Dashboard /wp-admin3.31 ▲0.0049.46 ▼1.20
Posts /wp-admin/edit.php3.36 ▲0.0050.56 ▼4.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.41 ▲3.37
Media Library /wp-admin/upload.php3.23 ▲0.0031.04 ▼6.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by wp-extraexif
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.001.72 ▼0.4540.64 ▼1.84
Dashboard /wp-admin2,195 ▲215.56 ▼0.0994.32 ▼0.7441.36 ▼0.44
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0639.32 ▼3.0135.77 ▼3.71
Add New Post /wp-admin/post-new.php1,526 ▼222.96 ▲0.04645.33 ▼29.3260.83 ▲1.16
Media Library /wp-admin/upload.php1,397 ▲34.23 ▲0.06100.55 ▼3.8144.49 ▼4.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-extraexif/wp-extraexif.php:28

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: media, exif, image

wp-extraexif/wp-extraexif.php Passed 13 tests

The primary PHP file in "wp-extraexif" version 1.0 is used by WordPress to initiate all plugin functionality
40 characters long description:
Read EXIF for images with cli `exiftool`

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin106 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1233891
JSON10015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin