84% add-metadata-free

Code Review | Add Metadata

WordPress plugin Add Metadata scored84%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: 6.3.1
  • 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,298 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
Install script ran successfully

Server metrics [RAM: ▼0.23MB] [CPU: ▼22.98ms] Passed 4 tests

A check of server-side resources used by Add Metadata
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0724.66 ▼19.54
Dashboard /wp-admin3.07 ▼0.2726.55 ▼35.86
Posts /wp-admin/edit.php3.21 ▼0.1533.94 ▼5.71
Add New Post /wp-admin/post-new.php5.45 ▼0.4469.78 ▼25.67
Media Library /wp-admin/upload.php3.16 ▼0.0725.35 ▼10.85

Server storage [IO: ▲0.01MB] [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
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Metadata
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.55 ▼1.201.75 ▼0.1143.75 ▼1.41
Dashboard /wp-admin2,220 ▲325.86 ▲0.0093.86 ▼24.2439.80 ▼5.66
Posts /wp-admin/edit.php2,106 ▲172.01 ▼0.0439.65 ▼0.7836.22 ▲0.04
Add New Post /wp-admin/post-new.php1,551 ▲2118.19 ▼5.02608.39 ▼36.2750.01 ▼14.38
Media Library /wp-admin/upload.php1,399 ▲84.19 ▼0.2293.44 ▼12.5141.69 ▼3.76

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
4 plugin tags: seo, google page ranks, metadata, metatags

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
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 255 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("add-metadata-free.php" instead of "add-metadata.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
Everything looks great! No dangerous files found in this plugin54 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15854
CSS1170
JavaScript1010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
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
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected