78% adwol-werbung

Code Review | AdWol Werbung

WordPress plugin AdWol Werbung scored 78% from 54 tests.

About plugin

  • Plugin page: adwol-werbung
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Jan 16, 2014
  • Latest release: Dec 23, 2019
  • Number of updates: 10
  • Update frequency: every 216.6 days
  • Top authors: merqde (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 2,084 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.01MB] [CPU: ▼144.74ms] Passed 4 tests

This is a short check of server-side resources used by AdWol Werbung
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1240.02 ▲14.81
Dashboard /wp-admin3.07 ▲0.0139.59 ▼11.44
Posts /wp-admin/edit.php3.12 ▲0.0148.25 ▲3.37
Add New Post /wp-admin/post-new.php5.43 ▼0.0194.62 ▼569.12
Media Library /wp-admin/upload.php3.01 ▲0.0133.54 ▼1.75
AdWol Werbung /wp-admin/options-general.php?page=adwolwerbung2.9630.94

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_adwolwidget1

Browser metrics Passed 4 tests

This is an overview of browser requirements for AdWol Werbung
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.95 ▲0.426.74 ▼4.2749.16 ▼5.53
Dashboard /wp-admin2,975 ▲475.85 ▼0.27144.83 ▼12.16123.12 ▲5.58
Posts /wp-admin/edit.php2,741 ▲22.68 ▼0.0168.14 ▼2.0799.32 ▲0.45
Add New Post /wp-admin/post-new.php1,686 ▲18818.70 ▼0.08406.94 ▲21.63122.51 ▲9.09
Media Library /wp-admin/upload.php1,815 ▲85.00 ▼0.02160.47 ▲2.06120.06 ▼11.03
AdWol Werbung /wp-admin/options-general.php?page=adwolwerbung1,1032.1860.7984.48

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_adwolwidget1

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=adwolwerbung
    • > Notice in wp-content/plugins/adwol-werbung/adwol-werbung.php+251
    Undefined index: publisher
    • > GET request to /wp-admin/options-general.php?page=adwolwerbung
    • > Notice in wp-content/plugins/adwol-werbung/adwol-werbung.php+256
    Undefined index: adwolbei
    • > GET request to /wp-admin/options-general.php?page=adwolwerbung
    • > Notice in wp-content/plugins/adwol-werbung/adwol-werbung.php+261
    Undefined index: adwolrel
    • > GET request to /wp-admin/options-general.php?page=adwolwerbung
    • > Notice in wp-content/plugins/adwol-werbung/adwol-werbung.php+266
    Undefined variable: updatead

SRP 50% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adwol-werbung/adwol-werbung.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

adwol-werbung/adwol-werbung.php Passed 13 tests

This is the main PHP file of "AdWol Werbung" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Blog Monetarisierung - Banner, Widgets, InPost, RecommendAds.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin218 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15834218

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin