84% remove-exif-and-metadata

Code Review | Remove exif and metadata

WordPress plugin Remove exif and metadata scored 84% from 54 tests.

About plugin

  • Plugin page: remove-exif-and-m...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 5.8.1
  • First release: Jan 13, 2016
  • Latest release: Jan 13, 2016
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: EdgarKotov (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active / 5,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.78MB] [CPU: ▼196.35ms] Passed 4 tests

A check of server-side resources used by Remove exif and metadata
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1240.70 ▲16.63
Dashboard /wp-admin1.87 ▼1.189.22 ▼54.50
Posts /wp-admin/edit.php1.87 ▼1.245.08 ▼43.62
Add New Post /wp-admin/post-new.php1.87 ▼3.565.10 ▼660.03
Media Library /wp-admin/upload.php1.87 ▼1.135.39 ▼27.26

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Remove exif and metadata
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.99 ▲0.4516.55 ▲4.1448.93 ▼10.88
Dashboard /wp-admin2,970 ▲365.90 ▼0.24158.24 ▼14.15113.19 ▲3.95
Posts /wp-admin/edit.php2,736 ▼32.72 ▲0.0170.94 ▼13.9297.68 ▼3.15
Add New Post /wp-admin/post-new.php1,683 ▼018.70 ▲0.32440.65 ▲9.12113.72 ▼2.06
Media Library /wp-admin/upload.php1,807 ▼05.06 ▲0.03179.34 ▼5.63120.99 ▲0.85

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
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method Exif::init() should not be called statically

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/remove-exif-and-metadata/index.php

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: imagemagick, images, metadata, remove, exif...

remove-exif-and-metadata/index.php 85% from 13 tests

"Remove exif and metadata" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-exif-and-metadata.php" instead of "index.php")

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
No dangerous file extensions were detected45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182145

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity2.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected