93% dynamic-post-meta

Code Review | Dynamic Post Meta

WordPress plugin Dynamic Post Meta scored 93% from 54 tests.

About plugin

  • Plugin page: dynamic-post-meta
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.3
  • WordPress version: 5.8.1
  • First release: Mar 18, 2017
  • Latest release: Mar 21, 2017
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: bhartlenn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 400 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼136.10ms] Passed 4 tests

This is a short check of server-side resources used by Dynamic Post Meta
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.25 ▲15.99
Dashboard /wp-admin3.08 ▲0.0245.10 ▼0.83
Posts /wp-admin/edit.php3.13 ▲0.0245.54 ▲4.96
Add New Post /wp-admin/post-new.php5.43 ▲0.0099.17 ▼554.25
Media Library /wp-admin/upload.php3.02 ▲0.0232.29 ▲5.74

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Dynamic Post Meta
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.22 ▲0.308.19 ▼1.5249.39 ▲0.36
Dashboard /wp-admin2,973 ▲395.94 ▼0.01155.46 ▲5.44108.03 ▼7.06
Posts /wp-admin/edit.php2,736 ▼32.70 ▼0.0071.29 ▲4.9798.86 ▲8.33
Add New Post /wp-admin/post-new.php1,672 ▼1118.83 ▲0.12373.90 ▼12.45112.29 ▲2.07
Media Library /wp-admin/upload.php1,807 ▲595.02 ▼0.02148.71 ▼0.08122.76 ▲3.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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
Good news, no errors were detected

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-post-meta/dynamic_post_meta.php:137

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 90% 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
8 plugin tags: permalink, modified, author, title, date...

dynamic-post-meta/dynamic_post_meta.php 77% from 13 tests

"Dynamic Post Meta" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dynamic-post-meta.php" instead of "dynamic_post_meta.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin95 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
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 functions7100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png24.34KB6.14KB▼ 74.79%