84% webcam-addon-for-contact-form-7

Code Review | Web cam Addon for Contact form 7

WordPress plugin Web cam Addon for Contact form 7 scored84%from 54 tests.

About plugin

  • Plugin page: webcam-addon-for-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 10, 2022
  • Latest release: Sep 10, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: murtuzamakda52 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /854 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Web cam Addon for Contact form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.81 ▲1.69
Dashboard /wp-admin3.32 ▲0.0251.37 ▼1.97
Posts /wp-admin/edit.php3.37 ▲0.0249.24 ▼2.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.81 ▲9.62
Media Library /wp-admin/upload.php3.25 ▲0.0240.34 ▲2.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Web cam Addon for Contact form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.56 ▼1.038.86 ▲7.0041.47 ▼4.33
Dashboard /wp-admin2,221 ▲305.04 ▼0.05108.31 ▲5.3040.59 ▼0.61
Posts /wp-admin/edit.php2,104 ▲122.14 ▲0.1039.66 ▼0.8435.92 ▼0.84
Add New Post /wp-admin/post-new.php1,551 ▲3723.48 ▲6.00657.47 ▲36.2550.54 ▲0.01
Media Library /wp-admin/upload.php1,403 ▲154.27 ▲0.04102.03 ▼5.6242.34 ▼6.30

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/webcam-addon-for-contact-form-7/webcam-addon-for-contact-form-7.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

webcam-addon-for-contact-form-7/webcam-addon-for-contact-form-7.php Passed 13 tests

The primary PHP file in "Web cam Addon for Contact form 7" version 1.0 is used by WordPress to initiate all plugin functionality
81 characters long description:
This plugin use for capture picture and send in mail with help of Contact form 7.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin155 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22814132
JavaScript28121
SVG2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin