83% beauty-contact-popup-form

Code Review | Beauty Contact Popup Form

WordPress plugin Beauty Contact Popup Form scored 83% from 54 tests.

About plugin

  • Plugin page: beauty-contact-po...
  • Plugin version: 6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2014
  • Latest release: Feb 2, 2015
  • Number of updates: 151
  • Update frequency: every 0.7 days
  • Top authors: tagwebs (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 17,319 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Beauty Contact Popup Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.08 ▼0.91
Dashboard /wp-admin3.32 ▲0.0244.26 ▼7.13
Posts /wp-admin/edit.php3.37 ▲0.0250.50 ▲5.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.71 ▼3.88
Media Library /wp-admin/upload.php3.24 ▲0.0234.44 ▲0.14

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 15 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Beauty Contact Popup Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲11113.34 ▼0.971.84 ▼0.1940.63 ▼7.00
Dashboard /wp-admin2,224 ▲365.83 ▲0.98101.05 ▼3.7480.96 ▲36.93
Posts /wp-admin/edit.php2,104 ▲151.99 ▼0.0640.75 ▲4.8237.75 ▲2.05
Add New Post /wp-admin/post-new.php1,536 ▼623.39 ▲5.09702.02 ▲74.7468.92 ▲11.20
Media Library /wp-admin/upload.php1,406 ▲184.17 ▼0.0195.75 ▼1.6674.51 ▲25.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 15 options in the database
    • TagPopup_FormTitle
    • TagPopup_title
    • TagPopup_On_SendEmail
    • TagPopup_On_Captcha
    • TagPopup_fromemail
    • db_upgraded
    • TagPopup_On_Subject
    • widget_theysaidso_widget
    • widget_recent-posts
    • TagPopup_ButtonLink
    • ...

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/beauty-contact-popup-form/beauty-contact-popup-form.php:111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/beauty-contact-popup-form/tag-setting.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots require images: #1 (Contact Popup form display in page), #2 (Contact Popup form display with validation), #3 (Contact Popup admin panel option)
The official readme.txt might help

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

"Beauty Contact Popup Form" version 6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 341 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin919 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/contact-tag.png7.46KB2.69KB▼ 63.91%
inc/img/contact-tag1.png7.81KB2.83KB▼ 63.77%