94% meta-box-wrapper-api

Code Review | Meta Box Wrapper API

WordPress plugin Meta Box Wrapper API scored 94% from 54 tests.

About plugin

  • Plugin page: meta-box-wrapper-api
  • Plugin version: 0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.8.1
  • First release: Sep 19, 2014
  • Latest release: Sep 21, 2014
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: behrooz.tahanzadeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 518 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.32ms] Passed 4 tests

An overview of server-side resources used by Meta Box Wrapper API
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1441.84 ▲17.68
Dashboard /wp-admin3.09 ▲0.0345.33 ▼4.19
Posts /wp-admin/edit.php3.17 ▲0.0552.36 ▼4.13
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.31 ▼566.79
Media Library /wp-admin/upload.php3.03 ▲0.0236.53 ▲1.83

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Meta Box Wrapper API
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4215.80 ▼0.118.92 ▼1.9453.65 ▲1.51
Dashboard /wp-admin2,967 ▲335.87 ▼0.08145.30 ▼8.15122.73 ▲13.65
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0068.58 ▼0.14103.34 ▲14.64
Add New Post /wp-admin/post-new.php1,615 ▼6821.39 ▲2.48289.09 ▼103.70109.26 ▼2.19
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.00171.40 ▲32.44122.98 ▼5.24

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'BtMetaField' not found in wp-content/plugins/meta-box-wrapper-api/inc/BtMetaSelectField.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'BtMetaField' not found in wp-content/plugins/meta-box-wrapper-api/inc/BtMetaTextField.php:2

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: api, meta box

meta-box-wrapper-api/meta-box-wrapper-api.php Passed 13 tests

The main PHP file in "Meta Box Wrapper API" ver. 0.0 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
Simple is More!This plugin is intended to provide a simple

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin166 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP67578166

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.40
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin