84% wpcf7-extended

Code Review | WPCF7 Extended

WordPress plugin WPCF7 Extended scored84%from 54 tests.

About plugin

  • Plugin page: wpcf7-extended
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2021
  • Latest release: Oct 26, 2022
  • Number of updates: 14
  • Update frequency: every 24.9 days
  • Top authors: thanminhtu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /646 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.45ms] Passed 4 tests

A check of server-side resources used by WPCF7 Extended
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.88 ▼2.96
Dashboard /wp-admin3.31 ▲0.0044.59 ▼3.39
Posts /wp-admin/edit.php3.36 ▲0.0044.47 ▲0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.53 ▼3.63
Media Library /wp-admin/upload.php3.23 ▲0.0034.66 ▲2.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WPCF7 Extended
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.35 ▼0.032.12 ▲0.2744.43 ▲8.48
Dashboard /wp-admin2,198 ▲175.63 ▲0.0181.39 ▼19.1639.07 ▼9.00
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0135.09 ▼3.7333.37 ▼1.56
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.01664.91 ▼3.6254.73 ▼4.51
Media Library /wp-admin/upload.php1,394 ▼64.23 ▼0.0093.44 ▼16.7142.29 ▼3.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcf7-extended/includes/functions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: confirm, contact form 7, contact form 7 confirm, cf7 confirm, cf7

wpcf7-extended/wpcf7-extended.php 92% from 13 tests

The entry point to "WPCF7 Extended" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 184 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin773 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP917320719
PO File1182054

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png20.74KB8.87KB▼ 57.21%