84% exif-viewer

Code Review | EXIF Viewer

WordPress plugin EXIF Viewer scored84%from 54 tests.

About plugin

  • Plugin page: exif-viewer
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: Jul 3, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: veleno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,247 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by EXIF Viewer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.14 ▼1.31
Dashboard /wp-admin3.32 ▲0.0247.36 ▼4.68
Posts /wp-admin/edit.php3.38 ▲0.0247.80 ▼5.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.57 ▼17.70
Media Library /wp-admin/upload.php3.25 ▲0.0236.56 ▲0.23

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

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

Browser metrics Passed 4 tests

EXIF Viewer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.362.11 ▼0.0839.79 ▼4.69
Dashboard /wp-admin2,186 ▲125.54 ▼0.0390.49 ▼9.7741.42 ▼3.58
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0533.93 ▼1.2036.09 ▲1.95
Add New Post /wp-admin/post-new.php1,534 ▲618.06 ▼5.05640.49 ▼52.7665.67 ▲3.38
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0196.36 ▼22.7040.72 ▼7.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
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 add_filter() in wp-content/plugins/exif-viewer/exif-viewer.php:69

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: jpeg, media, exif, images

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

The main PHP script in "EXIF Viewer" version 0.1 is automatically included on every request by WordPress
121 characters long description:
EXIF Viewer displays EXIF data in Edit Media Screen, appends EXIF data to JPEG media page content, enables media archives

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
There were no executable files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1274379

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin