84% post-meta-data-manager

Code Review | Post Meta Data Manager

WordPress plugin Post Meta Data Manager scored84%from 54 tests.

About plugin

  • Plugin page: post-meta-data-ma...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Aug 25, 2021
  • Latest release: Nov 11, 2023
  • Number of updates: 19
  • Update frequency: every 42.5 days
  • Top authors: gandhihitesh9 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

700+ active /6,077 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: ▲0.03MB] [CPU: ▼3.92ms] Passed 4 tests

A check of server-side resources used by Post Meta Data Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.40 ▼7.83
Dashboard /wp-admin3.34 ▲0.0344.42 ▲0.18
Posts /wp-admin/edit.php3.39 ▲0.0349.27 ▲5.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.38 ▼9.68
Media Library /wp-admin/upload.php3.26 ▲0.0337.39 ▲1.67
PMDM Settings /wp-admin/admin.php?page=pmdm-general-settings3.2832.65
Help /wp-admin/admin.php?page=pmdm-help3.2531.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Post Meta Data Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3014.25 ▼0.061.94 ▼0.0337.87 ▼3.39
Dashboard /wp-admin2,222 ▲425.63 ▲0.0384.50 ▼3.1938.01 ▼2.85
Posts /wp-admin/edit.php2,127 ▲241.94 ▼0.0240.74 ▼2.7536.65 ▼2.20
Add New Post /wp-admin/post-new.php1,548 ▲1923.02 ▼0.61669.19 ▲37.4950.91 ▼4.51
Media Library /wp-admin/upload.php1,427 ▲304.10 ▼0.10103.32 ▲5.0942.47 ▲1.70
PMDM Settings /wp-admin/admin.php?page=pmdm-general-settings9802.3328.6524.21
Help /wp-admin/admin.php?page=pmdm-help8031.9727.1127.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/post-meta-data-manager/post-meta-data-manager.php:28

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
8 plugin tags: tools, meta fiedls editor, inspector, meta, post meta...

post-meta-data-manager/post-meta-data-manager.php 85% from 13 tests

The primary PHP file in "Post Meta Data Manager" version 1.2.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "6.0.1")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,450 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP9223227747
JavaScript272105528
CSS23311129
Markdown220046

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity40.50
▷ Minimum class complexity10.00
▷ Maximum class complexity71.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/css/images/sort_asc.png0.16KB0.25KB0.00%
includes/css/images/sort_desc.png0.15KB0.25KB0.00%
includes/css/images/sort_both.png0.20KB0.29KB0.00%
includes/css/images/sort_asc_disabled.png0.14KB0.25KB0.00%
includes/css/images/sort_desc_disabled.png0.14KB0.25KB0.00%