78% easy-meta-builder

Code Review | Easy Meta Builder

WordPress plugin Easy Meta Builder scored 78% from 54 tests.

About plugin

  • Plugin page: easy-meta-builder
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 5.8.1
  • First release: Dec 29, 2016
  • Latest release: Jan 18, 2017
  • Number of updates: 14
  • Update frequency: every 1.2 days
  • Top authors: modemlooper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 930 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼142.84ms] Passed 4 tests

An overview of server-side resources used by Easy Meta Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0743.25 ▲6.66
Dashboard /wp-admin3.15 ▲0.0942.52 ▼7.91
Posts /wp-admin/edit.php3.26 ▲0.1544.23 ▼0.27
Add New Post /wp-admin/post-new.php5.51 ▲0.0889.26 ▼564.79
Media Library /wp-admin/upload.php3.10 ▲0.1032.88 ▲1.63
All Meta Boxes /wp-admin/edit.php?post_type=easymetabuilder3.1335.82
Add New /wp-admin/post-new.php?post_type=easymetabuilder3.5242.33

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 343 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Meta Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,750 ▲17815.86 ▲0.349.14 ▼1.9045.62 ▼4.40
Dashboard /wp-admin3,014 ▲836.21 ▲0.22136.08 ▼2.65107.44 ▲1.82
Posts /wp-admin/edit.php2,786 ▲472.73 ▼0.1163.91 ▼1.2092.29 ▲4.25
Add New Post /wp-admin/post-new.php1,658 ▼2522.52 ▲4.01274.97 ▼88.93103.74 ▲1.59
Media Library /wp-admin/upload.php1,854 ▲415.07 ▲0.05150.34 ▼4.18118.46 ▲6.37
All Meta Boxes /wp-admin/edit.php?post_type=easymetabuilder1,4432.6560.7268.57
Add New /wp-admin/post-new.php?post_type=easymetabuilder2,1662.1935.90116.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • recovery_mode_email_last_sent

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=easymetabuilder
    • > Compile error in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Colorpicker.php+35
    Declaration of CMB2_Type_Colorpicker::render() must be compatible with CMB2_Type_Text::render($args = Array)

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
The following issues need your attention
  • 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/helper-functions.php:111
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/easy-meta-builder/vendor/CMB2/includes/types/CMB2_Type_Checkbox.php:13

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


Plugin configuration 96% 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
3 plugin tags: meta fields, metabox, meta

easy-meta-builder/loader.php 92% from 13 tests

The main file in "Easy Meta Builder" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-meta-builder.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin40,409 lines of code in 197 files:
LanguageFilesBlank linesComment linesLines of code
PO File11912,73116,33829,151

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity14.20
▷ Minimum class complexity1.00
▷ Maximum class complexity145.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
▷ Abstract classes46.56%
▷ Concrete classes5793.44%
▷ Final classes00.00%
▷ Static methods298.48%
▷ Public methods30488.89%
▷ Protected methods3510.23%
▷ Private methods30.88%
▷ Named functions27100.00%
▷ Anonymous functions00.00%
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/CMB2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
vendor/CMB2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%