73% beauty-contact-form

Code Review | Beauty Contact Form

WordPress plugin Beauty Contact Form scored73%from 54 tests.

About plugin

  • Plugin page: beauty-contact-form
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2014
  • Latest release: Jan 19, 2015
  • Number of updates: 12
  • Update frequency: every 12.2 days
  • Top authors: tagwebs (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,702 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.15ms] Passed 4 tests

An overview of server-side resources used by Beauty Contact Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.09 ▲2.95
Dashboard /wp-admin3.33 ▲0.0345.64 ▲0.09
Posts /wp-admin/edit.php3.38 ▲0.0345.89 ▲0.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.05 ▼14.35
Media Library /wp-admin/upload.php3.26 ▲0.0333.77 ▲1.25

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_tagwebs_data
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Beauty Contact Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.24 ▼1.195.19 ▲3.4943.23 ▼0.67
Dashboard /wp-admin2,224 ▲395.77 ▲0.89101.59 ▼17.7479.61 ▲34.47
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0138.90 ▲2.5437.42 ▲3.78
Add New Post /wp-admin/post-new.php1,528 ▼523.11 ▼0.27704.10 ▲96.6151.42 ▲1.34
Media Library /wp-admin/upload.php1,400 ▲184.21 ▲0.06100.46 ▲0.3371.40 ▲31.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_tagwebs_data
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beauty-contact-form/beauty-contact-form.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Contact form display with Validation), #2 (Contact form display with Success message), #3 (Contact form submitted data display in page using shortcode), #4 (Contact form submitted data admin panel view)
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

beauty-contact-form/beauty-contact-form.php 92% from 13 tests

The principal PHP file in "Beauty Contact Form" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 359 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin382 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13825221
CSS111161

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.54KB0.62KB0.00%