90% bbwp-custom-fields

Code Review | BBWP Custom Fields

WordPress plugin BBWP Custom Fields scored90%from 54 tests.

About plugin

  • Plugin page: bbwp-custom-fields
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 6, 2018
  • Latest release: Sep 6, 2020
  • Number of updates: 8
  • Update frequency: every 99.1 days
  • Top authors: bytebunch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.43MB] [CPU: ▼1.13ms] Passed 4 tests

This is a short check of server-side resources used by BBWP Custom Fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0543.98 ▲4.53
Dashboard /wp-admin3.96 ▲0.5960.16 ▲2.15
Posts /wp-admin/edit.php4.01 ▲0.6252.61 ▲1.84
Add New Post /wp-admin/post-new.php6.48 ▲0.5696.66 ▼13.04
Media Library /wp-admin/upload.php3.80 ▲0.5444.47 ▲7.15
Custom Post Types /wp-admin/admin.php?page=bbwpcustomfieldscpt3.7845.88
BBWP Custom Fields /wp-admin/admin.php?page=bbwpcustomfields3.7938.69
Custom Taxonomies /wp-admin/admin.php?page=bbwpcustomfieldsct3.7946.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: no files
Database: no new tables, 9 new options
New WordPress options
bbwp_update_message
widget_recent-posts
bbwpcustomfields_options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
bbwp_error_message

Browser metrics Passed 4 tests

BBWP Custom Fields: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,006 ▲26015.11 ▲0.721.74 ▼0.0142.82 ▼2.19
Dashboard /wp-admin2,406 ▲2216.88 ▲1.04122.24 ▲18.6637.10 ▼20.44
Posts /wp-admin/edit.php2,323 ▲2313.75 ▲1.7254.61 ▲14.9034.05 ▼1.91
Add New Post /wp-admin/post-new.php1,579 ▲5923.11 ▼0.36631.58 ▼58.1935.33 ▼21.59
Media Library /wp-admin/upload.php1,459 ▲744.54 ▲0.3883.51 ▼14.3839.87 ▼4.57
Custom Post Types /wp-admin/admin.php?page=bbwpcustomfieldscpt2,3143.9060.7243.32
BBWP Custom Fields /wp-admin/admin.php?page=bbwpcustomfields1,2473.5453.6832.48
Custom Taxonomies /wp-admin/admin.php?page=bbwpcustomfieldsct2,0433.9353.6934.11

Uninstaller [IO: ✅] [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
These items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • bbwpcustomfields_options
    • bbwp_update_message
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • bbwp_error_message

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

bbwp-custom-fields/bbwp-custom-fields.php Passed 13 tests

The main PHP file in "BBWP Custom Fields" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
120 characters long description:
Allows you to add additional Meta Boxes with custom fields into Post types, Taxonomies, User Profile, Comments and more.

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
No dangerous file extensions were detected3,059 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP143763302,778
JavaScript13418162
CSS1011115
Markdown1304

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity72.50
▷ Minimum class complexity5.00
▷ Maximum class complexity191.00
Average method complexity11.83
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods66
▷ Static methods710.61%
▷ Public methods5786.36%
▷ Protected methods00.00%
▷ Private methods913.64%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin