90% driveworks-block-form-embed

Code Review | DriveWorks Block - Form Embed

WordPress plugin DriveWorks Block - Form Embed scored90%from 54 tests.

About plugin

  • Plugin page: driveworks-block-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 6.3.1
  • First release: Jan 31, 2022
  • Latest release: Feb 16, 2022
  • Number of updates: 4
  • Update frequency: every 4.8 days
  • Top authors: driveworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.39ms] Passed 4 tests

An overview of server-side resources used by DriveWorks Block - Form Embed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.84 ▼13.07
Dashboard /wp-admin3.32 ▲0.0249.07 ▼2.97
Posts /wp-admin/edit.php3.37 ▲0.0251.69 ▼3.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.27 ▼10.27
Media Library /wp-admin/upload.php3.24 ▲0.0241.80 ▲8.09

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for DriveWorks Block - Form Embed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.51 ▼1.095.56 ▲3.7140.63 ▼3.92
Dashboard /wp-admin2,209 ▲185.88 ▲0.79101.40 ▼7.4741.64 ▲2.15
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0237.28 ▼5.2434.38 ▼0.03
Add New Post /wp-admin/post-new.php6,356 ▲4,83727.54 ▲4.53931.74 ▲264.5641.67 ▼9.40
Media Library /wp-admin/upload.php1,385 ▼34.27 ▲0.05109.78 ▲6.9048.03 ▲0.96

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: form, embed, project, integration theme, block...

driveworks-block-form-embed/driveworks-block-form-embed.php Passed 13 tests

Analyzing the main PHP file in "DriveWorks Block - Form Embed" version 1.0.0
68 characters long description:
Use a block to quickly embed a DriveWorks Form (Project or DriveApp)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected16,808 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON30016,175
JavaScript567111257
JSX3190229
Sass212280
PHP3152665
CSS2002

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 code0.52
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%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected