78% custom-post-type-list-field-for-contact-form-7

Code Review | Custom Post Type List Field For Contact Form 7

WordPress plugin Custom Post Type List Field For Contact Form 7 scored78%from 54 tests.

About plugin

  • Plugin page: custom-post-type-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 18, 2022
  • Latest release: Sep 26, 2023
  • Number of updates: 6
  • Update frequency: every 77.7 days
  • Top authors: silverplugins217 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Custom Post Type List Field For Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.26 ▲1.65
Dashboard /wp-admin3.31 ▲0.0047.90 ▼6.71
Posts /wp-admin/edit.php3.36 ▲0.0048.15 ▲0.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.72 ▼1.08
Media Library /wp-admin/upload.php3.23 ▲0.0034.00 ▼2.81

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Post Type List Field For Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.35 ▼0.081.84 ▼0.0441.52 ▼4.04
Dashboard /wp-admin2,198 ▲215.63 ▲0.0185.41 ▼22.3839.75 ▼4.53
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0339.95 ▲3.6335.50 ▼0.16
Add New Post /wp-admin/post-new.php1,526 ▼223.28 ▲0.16644.62 ▲5.2065.17 ▲8.66
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0696.79 ▼14.8441.56 ▼6.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/custom-post-type-list-field-for-contact-form-7/custom-post-type-list-field-cf7.php
  • 3× 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/custom-post-type-list-field-for-contact-form-7/main/resources/cptlfcf7-language.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-type-list-field-for-contact-form-7/main/resources/cptlfcf7-load-js-css.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-type-list-field-for-contact-form-7/main/resources/cptlfcf7-installation-require.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Contributors: Contributors not specified
You can look at the official readme.txt

custom-post-type-list-field-for-contact-form-7/custom-post-type-list-field-cf7.php 92% from 13 tests

The entry point to "Custom Post Type List Field For Contact Form 7" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-post-type-list-field-for-contact-form-7.php" instead of "custom-post-type-list-field-cf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected10,299 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript532,4446519,320
CSS4590516
PHP67326463

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin