83% wpshopgermany-handlerbund

Code Review | wpShopGermany - Händlerbund

WordPress plugin wpShopGermany - Händlerbund scored83%from 54 tests.

About plugin

  • Plugin page: wpshopgermany-han...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2013
  • Latest release: Jul 31, 2023
  • Number of updates: 20
  • Update frequency: every 183.0 days
  • Top authors: maennchen1.de (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,086 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.74ms] Passed 4 tests

A check of server-side resources used by wpShopGermany - Händlerbund
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.99 ▲4.23
Dashboard /wp-admin3.40 ▲0.0946.95 ▼0.59
Posts /wp-admin/edit.php3.51 ▲0.1545.31 ▼1.88
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.09 ▼18.77
Media Library /wp-admin/upload.php3.32 ▲0.0933.92 ▼1.71
Händlerbund /wp-admin/options-general.php?page=wpshopgermany-hb-Admin3.3936.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for wpShopGermany - Händlerbund
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.19 ▼0.421.69 ▼0.1643.92 ▲3.16
Dashboard /wp-admin2,199 ▲225.59 ▼0.0281.79 ▼6.8742.16 ▲0.72
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0433.25 ▼5.1035.97 ▼3.42
Add New Post /wp-admin/post-new.php1,528 ▲222.38 ▼0.74672.11 ▲46.3553.46 ▼5.58
Media Library /wp-admin/upload.php1,404 ▲14.17 ▼0.0392.78 ▼5.5543.61 ▼2.05
Händlerbund /wp-admin/options-general.php?page=wpshopgermany-hb-Admin1,2271.9921.7029.63

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpshopgermany-handlerbund/wpshopgermany-haendlerbund.php:35
    • > PHP Warning
      Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpshopgermany-handlerbund/wpshopgermany-haendlerbund.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Plugin Einstellungen)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wpshopgermany-handlerbund === )
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

wpshopgermany-handlerbund/wpshopgermany-haendlerbund.php 85% from 13 tests

Analyzing the main PHP file in "wpShopGermany - Händlerbund" version 1.7
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpshopgermany-handlerbund.php" instead of "wpshopgermany-haendlerbund.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin822 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP635896822

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity38.50
▷ Minimum class complexity28.00
▷ Maximum class complexity49.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
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
PNG images were not found in this plugin