90% driveworks-shortcode-form-embed

Code Review | DriveWorks Shortcode - Form Embed

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

About plugin

  • Plugin page: driveworks-shortc...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jan 28, 2022
  • Latest release: Feb 16, 2022
  • Number of updates: 10
  • Update frequency: every 2.7 days
  • Top authors: driveworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.97ms] Passed 4 tests

An overview of server-side resources used by DriveWorks Shortcode - Form Embed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.59 ▲2.42
Dashboard /wp-admin3.31 ▼0.0451.27 ▼14.81
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▼4.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.56 ▼15.40
Media Library /wp-admin/upload.php3.23 ▲0.0039.95 ▲6.05

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for DriveWorks Shortcode - Form Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▲0.031.75 ▼0.1644.05 ▲1.13
Dashboard /wp-admin2,195 ▲155.62 ▼0.0893.68 ▼7.5640.72 ▼5.38
Posts /wp-admin/edit.php2,100 ▲181.99 ▼0.0236.83 ▼0.4135.62 ▼0.21
Add New Post /wp-admin/post-new.php1,526 ▼1323.10 ▼0.08671.23 ▲15.3860.98 ▲7.17
Media Library /wp-admin/upload.php1,400 ▼34.12 ▼0.04102.56 ▲4.1145.78 ▲2.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

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
8 plugin tags: driveworks live, embed, project, integration theme, integration...

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

The entry point to "DriveWorks Shortcode - Form Embed" version 1.0.1 is a PHP file that has certain tags in its header comment area
68 characters long description:
Use shortcode to quickly embed DriveWorks Forms (Projects/DriveApps)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin326 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript157101213
PHP1182082
CSS14431

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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 functions480.00%
▷ Anonymous functions120.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin