83% native-custom-fields-meta-box-and-acf

Code Review | Native Custom Fields Meta Box and ACF

WordPress plugin Native Custom Fields Meta Box and ACF scored83%from 54 tests.

About plugin

  • Plugin page: native-custom-fie...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 31, 2018
  • Latest release: Oct 31, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: kkarpieszuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.39ms] Passed 4 tests

A check of server-side resources used by Native Custom Fields Meta Box and ACF
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.87 ▼7.52
Dashboard /wp-admin3.31 ▲0.0145.28 ▼2.21
Posts /wp-admin/edit.php3.36 ▲0.0045.47 ▼3.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.71 ▼8.01
Media Library /wp-admin/upload.php3.23 ▲0.0034.29 ▼1.86

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Native Custom Fields Meta Box and ACF: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.23 ▼1.151.88 ▲0.2538.47 ▼10.31
Dashboard /wp-admin2,203 ▲145.81 ▲0.8396.31 ▼24.2635.49 ▼12.33
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0239.76 ▲4.1136.07 ▼0.05
Add New Post /wp-admin/post-new.php1,533 ▲1423.31 ▲0.30653.32 ▼14.9155.60 ▼3.80
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0194.72 ▼15.5141.60 ▼8.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/native-custom-fields-meta-box-and-acf/plugin.php:13
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/native-custom-fields-meta-box-and-acf/plugin.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Native WordPress custom fields interface)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === native-custom-fields-meta-box-and-acf === )
The official readme.txt might help

native-custom-fields-meta-box-and-acf/plugin.php 92% from 13 tests

The main PHP file in "Native Custom Fields Meta Box and ACF" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("native-custom-fields-meta-box-and-acf.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin6 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1294
Markdown1002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code2.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.59KB9.05KB▼ 51.29%