72% dpsg-stammesauswahl-for-contact-form-7

Code Review | DPSG Stammesauswahl for Contact Form 7

WordPress plugin DPSG Stammesauswahl for Contact Form 7 scored72%from 54 tests.

About plugin

  • Plugin page: dpsg-stammesauswa...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 17, 2020
  • Latest release: Aug 3, 2020
  • Number of updates: 5
  • Update frequency: every 3.4 days
  • Top authors: leodecking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by DPSG Stammesauswahl for Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.75 ▼3.79
Dashboard /wp-admin3.35 ▲0.0453.60 ▼1.23
Posts /wp-admin/edit.php3.40 ▲0.0457.29 ▲4.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.86 ▼19.51
Media Library /wp-admin/upload.php3.27 ▲0.0438.91 ▼0.56
Stammesauswahl /wp-admin/options-general.php?page=cf7stammesauswahl_settings3.2134.35

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by DPSG Stammesauswahl for Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.42 ▲0.181.86 ▼0.2049.14 ▲4.57
Dashboard /wp-admin2,202 ▲255.59 ▼0.0587.10 ▼19.7438.54 ▼6.04
Posts /wp-admin/edit.php2,104 ▲72.02 ▲0.0741.07 ▲3.4537.95 ▲1.89
Add New Post /wp-admin/post-new.php1,529 ▼823.01 ▲4.82700.31 ▲28.6755.38 ▼19.25
Media Library /wp-admin/upload.php1,404 ▲14.19 ▲0.08104.57 ▲2.9742.18 ▼1.63
Stammesauswahl /wp-admin/options-general.php?page=cf7stammesauswahl_settings9392.1527.9334.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cf7stammesauswahl_settings
    • > Notice in wp-content/plugins/dpsg-stammesauswahl-for-contact-form-7/cf7stammesauswahl-settings.php+76
    Trying to access array offset on value of type bool

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
  • 2× 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/dpsg-stammesauswahl-for-contact-form-7/cf7stammesauswahl-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dpsg-stammesauswahl-for-contact-form-7/cf7stammesauswahl-settings.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=cf7stammesauswahl_settings
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=cf7stammesauswahl_settings 0:0 Uncaught SyntaxError: Unexpected end of JSON input

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === dpsg-stammesauswahl-for-contact-form-7 === )
The official readme.txt is a good inspiration

dpsg-stammesauswahl-for-contact-form-7/cf7stammesauswahl.php 92% from 13 tests

This is the main PHP file of "DPSG Stammesauswahl for Contact Form 7" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dpsg-stammesauswahl-for-contact-form-7.php" instead of "cf7stammesauswahl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin414 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4493303
PHP2258111

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin