67% udvd-contactpage-generator

Code Review | UDVD-Contactpage-Generator

WordPress plugin UDVD-Contactpage-Generator scored 67% from 54 tests.

About plugin

  • Plugin page: udvd-contactpage-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Jan 10, 2013
  • Latest release: Jan 11, 2013
  • Number of updates: 56
  • Update frequency: every 0.0 days
  • Top authors: Rajapress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,258 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.93MB] [CPU: ▼33.11ms] Passed 4 tests

This is a short check of server-side resources used by UDVD-Contactpage-Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.58 ▲4.96
Dashboard /wp-admin3.01 ▼0.2930.07 ▼16.42
Posts /wp-admin/edit.php3.02 ▼0.3424.17 ▼22.27
Add New Post /wp-admin/post-new.php3.01 ▼2.8722.05 ▼78.77
Media Library /wp-admin/upload.php3.01 ▼0.2122.40 ▼14.98
UDVD Contactpage /wp-admin/options-general.php?page=udvd-contact-form-options3.0222.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
udvd_contact_form_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

UDVD-Contactpage-Generator: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.14 ▼1.031.81 ▼0.3245.92 ▲4.52
Dashboard /wp-admin2,207 ▲195.83 ▼0.0798.09 ▼2.9940.42 ▼0.95
Posts /wp-admin/edit.php2,093 ▲71.97 ▼0.0840.28 ▲2.2935.63 ▲3.78
Add New Post /wp-admin/post-new.php1,517 ▼217.67 ▼5.50669.12 ▲32.9450.54 ▼7.62
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.0596.24 ▼12.8142.67 ▼0.82
UDVD Contactpage /wp-admin/options-general.php?page=udvd-contact-form-options7962.0525.0525.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=udvd-contact-form-options
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/udvd-contactpage-generator/UDVD-Contactpage-Generator.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please describe screenshot #0 in udvd-contactpage-generator/assets to your readme.txt
  • Screenshots: Screenshot #1 (This is how your contact page looks) image required
Please take inspiration from this readme.txt

udvd-contactpage-generator/UDVD-Contactpage-Generator.php 85% from 13 tests

The main PHP script in "UDVD-Contactpage-Generator" version 1.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("udvd-contactpage-generator.php" instead of "UDVD-Contactpage-Generator.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 333 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
Everything looks great! No dangerous files found in this plugin248 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14932130
CSS1178118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/valid.png0.38KB0.31KB▼ 17.74%
img/red_asterisk.png0.22KB0.16KB▼ 26.01%
img/invalid.png0.41KB0.45KB0.00%
img/donate_hand.png31.35KB9.94KB▼ 68.30%