77% custom-fields-to-metaboxes

Code Review | Custom Fields to Metaboxes

WordPress plugin Custom Fields to Metaboxes scored77%from 54 tests.

About plugin

  • Plugin page: custom-fields-to-...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Jan 18, 2017
  • Number of updates: 6
  • Update frequency: every 56.2 days
  • Top authors: erikdmitchell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,123 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.27ms] Passed 4 tests

Server-side resources used by Custom Fields to Metaboxes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0549.77 ▲4.45
Dashboard /wp-admin3.36 ▲0.0154.77 ▼7.67
Posts /wp-admin/edit.php3.41 ▲0.0551.58 ▲2.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.82 ▼11.97
Media Library /wp-admin/upload.php3.28 ▲0.0540.08 ▲3.80
Cust. Fields to Meta /wp-admin/tools.php?page=custom-fields-to-metabox3.2533.35

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
These are issues you should consider
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/custom-fields-to-metaboxes/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Custom Fields to Metaboxes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4814.67 ▲0.291.91 ▼0.3843.67 ▼5.56
Dashboard /wp-admin2,225 ▲225.83 ▲0.0198.12 ▼21.9141.13 ▼12.31
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0440.69 ▲5.4732.83 ▼5.66
Add New Post /wp-admin/post-new.php1,534 ▲823.31 ▼0.18684.44 ▲64.0054.00 ▲4.03
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.02101.08 ▼6.8045.71 ▼9.43
Cust. Fields to Meta /wp-admin/tools.php?page=custom-fields-to-metabox9621.7226.5431.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=custom-fields-to-metabox
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-fields-to-metaboxes/custom-fields-to-metaboxes.php:565

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: "erikdmitchell@gmail.com"
You can take inspiration from this readme.txt

custom-fields-to-metaboxes/custom-fields-to-metaboxes.php 85% from 13 tests

The primary PHP file in "Custom Fields to Metaboxes" version 0.1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected471 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102136338
JavaScript125982
CSS10051

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods317.65%
▷ 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
No PNG images were found in this plugin