89% backend-custom-fields

Code Review | Backend Custom Fields For Forms Management System

WordPress plugin Backend Custom Fields For Forms Management System scored89%from 54 tests.

About plugin

  • Plugin page: backend-custom-fi...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.5
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Jun 6, 2017
  • Number of updates: 5
  • Update frequency: every 139.6 days
  • Top authors: Engr.MTH (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.14MB] [CPU: ▼8.22ms] Passed 4 tests

An overview of server-side resources used by Backend Custom Fields For Forms Management System
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.19 ▼1.21
Dashboard /wp-admin3.45 ▲0.1047.35 ▼13.60
Posts /wp-admin/edit.php3.56 ▲0.2048.16 ▼9.77
Add New Post /wp-admin/post-new.php6.06 ▲0.1795.84 ▼8.30
Media Library /wp-admin/upload.php3.37 ▲0.1434.68 ▲0.55

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Backend Custom Fields For Forms Management System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.124.50 ▲2.6940.59 ▼3.27
Dashboard /wp-admin2,210 ▲195.91 ▲1.05103.72 ▲0.7439.01 ▼3.97
Posts /wp-admin/edit.php2,093 ▲42.12 ▲0.0936.30 ▼7.2131.74 ▼4.56
Add New Post /wp-admin/post-new.php6,218 ▲4,69926.24 ▲2.91866.71 ▲187.4552.71 ▼3.94
Media Library /wp-admin/upload.php1,392 ▲44.37 ▲0.21100.29 ▼5.0143.06 ▲1.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
The official readme.txt might help

backend-custom-fields/backend-custom-fields.php 92% from 13 tests

The entry point to "Backend Custom Fields For Forms Management System" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin789 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP818044684
PO File1101049
JavaScript11034
CSS16322

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.67
▷ Minimum class complexity3.00
▷ Maximum class complexity25.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods47
▷ Static methods1531.91%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected