94% add-metadata-free

Code Review | Add Metadata

WordPress plugin Add Metadata scored 94% from 54 tests.

About plugin

  • Plugin page: add-metadata-free
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 5.9.2
  • First release: Feb 28, 2017
  • Latest release: Mar 2, 2017
  • Number of updates: 41
  • Update frequency: every 0.1 days
  • Top authors: ebraiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,012 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.39MB] [CPU: ▼300.36ms] Passed 4 tests

A check of server-side resources used by Add Metadata
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0446.29 ▼3.79
Dashboard /wp-admin3.21 ▼0.2020.61 ▼13.41
Posts /wp-admin/edit.php3.27 ▼0.3722.70 ▼14.01
Add New Post /wp-admin/post-new.php6.05 ▼0.9276.78 ▼1,169.97
Media Library /wp-admin/upload.php3.23 ▼0.0619.67 ▼4.06

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Add Metadata
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲6316.26 ▲0.515.97 ▲0.352.23 ▲0.05
Dashboard /wp-admin2,909 ▲516.10 ▼0.02117.82 ▼12.85159.06 ▼8.08
Posts /wp-admin/edit.php2,708 ▲173.24 ▲0.2263.33 ▼4.52142.04 ▼10.92
Add New Post /wp-admin/post-new.php1,708 ▲4721.27 ▲4.73401.94 ▼23.97154.96 ▼4.72
Media Library /wp-admin/upload.php1,709 ▲145.52 ▲0.00142.03 ▲0.36201.19 ▲17.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/add-metadata-free/add-metadata.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: metatags, seo, google page ranks, metadata

add-metadata-free/add-metadata.php 85% from 13 tests

"Add Metadata" version 1.1.0'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: The principal plugin file should be the same as the plugin slug ("add-metadata-free.php" instead of "add-metadata.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 255 characters long)

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
Everything looks great! No dangerous files found in this plugin54 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin