89% wp-media-metadata-fix

Code Review | WP Media Metadata Fix

WordPress plugin WP Media Metadata Fix scored89%from 54 tests.

About plugin

  • Plugin page: wp-media-metadata...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2020
  • Latest release: Oct 27, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: maliknaik16 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.03ms] Passed 4 tests

Server-side resources used by WP Media Metadata Fix
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.70 ▼4.58
Dashboard /wp-admin3.35 ▲0.0546.67 ▼3.40
Posts /wp-admin/edit.php3.40 ▲0.0446.19 ▲1.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.94 ▼5.37
Media Library /wp-admin/upload.php3.27 ▲0.0535.34 ▲4.42

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Media Metadata Fix
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.22 ▼1.191.71 ▼0.3140.42 ▼11.69
Dashboard /wp-admin2,209 ▲215.89 ▲0.01101.51 ▼10.3139.17 ▼4.68
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0538.63 ▲2.5634.77 ▲1.73
Add New Post /wp-admin/post-new.php1,547 ▲1418.48 ▼4.62616.09 ▼35.4464.50 ▲18.97
Media Library /wp-admin/upload.php1,413 ▲254.19 ▲0.0194.03 ▲0.1341.22 ▼0.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-media-metadata-fix/wp-media-metadata-fix.php 92% from 13 tests

The entry point to "WP Media Metadata Fix" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected156 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP268118156

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There were not PNG files found in your plugin