78% herzog-dupont

Code Review | Herzog Dupont for YOOtheme Pro

WordPress plugin Herzog Dupont for YOOtheme Pro scored78%from 54 tests.

About plugin

  • Plugin page: herzog-dupont
  • Plugin version: 1.7.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2021
  • Latest release: Nov 16, 2023
  • Number of updates: 55
  • Update frequency: every 17.4 days
  • Top authors: forrestkirby (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /8,925 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.01MB] [CPU: ▼8.00ms] Passed 4 tests

This is a short check of server-side resources used by Herzog Dupont for YOOtheme Pro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.09 ▲1.99
Dashboard /wp-admin3.31 ▼0.0445.04 ▼17.08
Posts /wp-admin/edit.php3.36 ▲0.0042.63 ▼4.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.48 ▼9.76
Media Library /wp-admin/upload.php3.23 ▲0.0032.04 ▼0.64

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Herzog Dupont for YOOtheme Pro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.19 ▼0.151.90 ▲0.2246.75 ▲2.65
Dashboard /wp-admin2,195 ▲185.62 ▼0.0287.52 ▼14.4742.82 ▼1.18
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0137.43 ▼0.2540.85 ▲4.07
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▲0.00657.84 ▼11.3650.67 ▼12.01
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.0598.50 ▼6.8743.04 ▼1.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-progress/templates/content.php
    • > /wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-flipcard/templates/content.php
    • > /wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-toggle/templates/content.php
    • > /wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-slideshow-grid_item/templates/template-slideshow.php
    • > /wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-timeline_item/templates/content.php
    • > /wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-slideshow-grid_item/templates/content.php
  • 183× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-slideshow-grid/templates/template-nav.php:6
    • > PHP Notice
      Undefined variable: props in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-slideshow-grid_item/templates/content.php on line 29
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-slideshow-grid_item/templates/content.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-flipcard/templates/content.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-flipcard/templates/content.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-flipcard/templates/template.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-timeline/templates/template.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'YOOtheme\\Path' not found in wp-content/plugins/herzog-dupont/includes/modules/elements/bootstrap.php:18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-flipcard/templates/template-link_back.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/herzog-dupont/includes/modules/elements/elements/hd-flipcard/templates/template-link.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: yootheme pro, yootheme, page builder

herzog-dupont/herzogdupont.php 92% from 13 tests

The entry point to "Herzog Dupont for YOOtheme Pro" version 1.7.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("herzog-dupont.php" instead of "herzogdupont.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected10,358 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
JSON12006,518
PHP541,0402762,917
LESS17916352
JavaScript69120288
CSS33513150
SVG16014116
Markdown14017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.67
Average class complexity2.40
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods1381.25%
▷ Protected methods00.00%
▷ Private methods318.75%
Functions38
▷ Named functions25.26%
▷ Anonymous functions3694.74%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin