84% post-meta-manager

Code Review | Post Meta Manager

WordPress plugin Post Meta Manager scored84%from 54 tests.

About plugin

  • Plugin page: post-meta-manager
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Sep 9, 2012
  • Latest release: Mar 18, 2016
  • Number of updates: 14
  • Update frequency: every 91.9 days
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /8,092 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.67ms] Passed 4 tests

Server-side resources used by Post Meta Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.30 ▲2.08
Dashboard /wp-admin3.37 ▲0.0757.81 ▲9.79
Posts /wp-admin/edit.php3.42 ▲0.0748.54 ▼6.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0790.69 ▼18.73
Media Library /wp-admin/upload.php3.29 ▲0.0736.63 ▲4.45
User Meta Manager /wp-admin/users.php?page=pmm-umeta-settings3.3433.27
Post Meta Manager /wp-admin/tools.php?page=pmm-pmeta-settings3.2631.49

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Meta Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.68 ▼0.571.76 ▼0.0744.18 ▼2.70
Dashboard /wp-admin2,217 ▲264.88 ▼1.1998.26 ▼1.1238.08 ▼8.83
Posts /wp-admin/edit.php2,094 ▲51.99 ▼0.0535.21 ▼8.0131.94 ▼2.50
Add New Post /wp-admin/post-new.php1,539 ▲523.24 ▲0.28674.45 ▲65.0966.22 ▼6.34
Media Library /wp-admin/upload.php1,399 ▲114.22 ▼0.01100.35 ▲0.1141.15 ▼4.41
User Meta Manager /wp-admin/users.php?page=pmm-umeta-settings8852.2022.3428.80
Post Meta Manager /wp-admin/tools.php?page=pmm-pmeta-settings8842.0425.3130.57

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/post-meta-manager/post-meta-manager.php:33

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: post meta, postmeta, metadata, custom fields, custom field

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

The main file in "Post Meta Manager" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

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 detected485 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP186142267
JavaScript2394693
PO File1293288
CSS29037

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.18
▷ 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 methods327.27%
▷ Public methods872.73%
▷ Protected methods218.18%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 files were detected