89% display-a-meta-field-as-block

Code Review | Meta Field Block

WordPress plugin Meta Field Block scored89%from 54 tests.

About plugin

  • Plugin page: display-a-meta-fi...
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Feb 22, 2022
  • Latest release: Sep 9, 2023
  • Number of updates: 43
  • Update frequency: every 13.1 days
  • Top authors: Mr2P (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

1,000+ active /15,797 total downloads


Plugin footprint 83% from 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.14MB] [CPU: ▼6.39ms] Passed 4 tests

Server-side resources used by Meta Field Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1632.32 ▼5.97
Dashboard /wp-admin3.45 ▲0.1144.15 ▼19.17
Posts /wp-admin/edit.php3.57 ▲0.2145.88 ▼2.68
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.20 ▲2.25
Media Library /wp-admin/upload.php3.38 ▲0.1437.81 ▲5.28

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Meta Field Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.31 ▼1.121.67 ▼0.3743.18 ▼6.34
Dashboard /wp-admin2,203 ▲154.87 ▼1.15102.37 ▼3.3641.51 ▼0.95
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0040.13 ▲3.2036.42 ▲0.29
Add New Post /wp-admin/post-new.php1,683 ▲16622.00 ▲4.19686.50 ▲21.9938.09 ▼19.43
Media Library /wp-admin/upload.php1,382 ▼04.22 ▲0.0195.68 ▼1.1441.33 ▼0.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

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


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: custom field, acf, blocks, meta field, gutenberg

display-a-meta-field-as-block/meta-field-block.php 77% from 13 tests

"Meta Field Block" version 1.1.7'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:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.8.0" instead of "5.8")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0.0" instead of "7.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("display-a-meta-field-as-block.php" instead of "meta-field-block.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 plugin830 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity50.00
▷ Minimum class complexity11.00
▷ Maximum class complexity89.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods26.90%
▷ Public methods2379.31%
▷ Protected methods00.00%
▷ Private methods620.69%
▷ Named functions531.25%
▷ Anonymous functions1168.75%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin