84% bitform

Code Review | BitForm - Data management solution for WordPress

WordPress plugin BitForm - Data management solution for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: bitform
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: May 31, 2021
  • Latest release: Jul 28, 2021
  • Number of updates: 5
  • Update frequency: every 13.8 days
  • Top authors: bitform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /465 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.34MB] [CPU: ▼3.01ms] Passed 4 tests

A check of server-side resources used by BitForm - Data management solution for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3637.15 ▼4.41
Dashboard /wp-admin3.66 ▲0.3547.88 ▼2.01
Posts /wp-admin/edit.php3.71 ▲0.3546.23 ▲0.29
Add New Post /wp-admin/post-new.php6.25 ▲0.3785.52 ▼5.92
Media Library /wp-admin/upload.php3.52 ▲0.2942.00 ▲8.90

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: 5 new tables, 7 new options
New tables
wp_bitform_entry_data
wp_bitform_forms
wp_bitform_entry_note
wp_bitform_form_meta
wp_bitform_entries
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_bitform-widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for BitForm - Data management solution for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.25 ▼1.011.65 ▼0.1742.05 ▼4.08
Dashboard /wp-admin2,214 ▲235.85 ▼0.0199.41 ▼5.5788.13 ▲48.66
Posts /wp-admin/edit.php2,103 ▲172.02 ▲0.0133.76 ▼3.4530.91 ▼2.62
Add New Post /wp-admin/post-new.php1,524 ▼417.48 ▼0.73719.25 ▲87.2862.38 ▲6.36
Media Library /wp-admin/upload.php1,390 ▼14.25 ▲0.0396.07 ▼2.6174.18 ▲32.36

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_bitform-widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Response' not found in wp-content/plugins/bitform/Common/JsonResponse.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'BitForm\\Repository\\AbstractRepository' not found in wp-content/plugins/bitform/Repository/EntryDataRepository.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BitForm\\Repository\\AbstractRepository' not found in wp-content/plugins/bitform/Repository/FormRepository.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bitform/Common/Widget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'BitForm\\Controller\\AbstractController' not found in wp-content/plugins/bitform/Controller/PublicController.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'BitForm\\Controller\\AbstractController' not found in wp-content/plugins/bitform/Controller/EntryController.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'BitForm\\Repository\\AbstractRepository' not found in wp-content/plugins/bitform/Repository/FormMetaRepository.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BitForm\\Repository\\AbstractRepository' not found in wp-content/plugins/bitform/Repository/EntryNoteRepository.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BitForm\\Repository\\AbstractRepository' not found in wp-content/plugins/bitform/Repository/EntryRepository.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'BitForm\\Controller\\AbstractController' not found in wp-content/plugins/bitform/Controller/FormController.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: form, table, data management

bitform/index.php 85% from 13 tests

The principal PHP file in "BitForm - Data management solution for WordPress" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Make the plugin description longer than 10 characters (currently 7 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bitform.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin1,871 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP26266261,871

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.20
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes25
▷ Abstract classes28.00%
▷ Concrete classes2392.00%
▷ Final classes00.00%
Methods149
▷ Static methods3422.82%
▷ Public methods12281.88%
▷ Protected methods1812.08%
▷ Private methods96.04%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants22
▷ Global constants29.09%
▷ Class constants2090.91%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png3.47KB0.71KB▼ 79.52%