84% aw-skr

Code Review | Scheidungskostenrechner

WordPress plugin Scheidungskostenrechner scored84%from 54 tests.

About plugin

  • Plugin page: aw-skr
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 6.3.1
  • First release: May 11, 2018
  • Latest release: Dec 31, 2020
  • Number of updates: 18
  • Update frequency: every 55.0 days
  • Top authors: activewebsight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Scheidungskostenrechner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.06 ▼5.23
Dashboard /wp-admin3.43 ▲0.0951.22 ▼13.23
Posts /wp-admin/edit.php3.48 ▲0.1353.06 ▲2.88
Add New Post /wp-admin/post-new.php6.03 ▲0.1490.70 ▼7.72
Media Library /wp-admin/upload.php3.35 ▲0.1334.15 ▼6.64

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 374 new files
Database: no new tables, 7 new options
New WordPress options
aw-skr-version
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Scheidungskostenrechner
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.26 ▼1.481.77 ▼0.0341.34 ▼2.81
Dashboard /wp-admin2,233 ▲455.91 ▲0.05113.56 ▲2.0844.26 ▲2.23
Posts /wp-admin/edit.php2,119 ▲272.06 ▲0.0341.79 ▲3.6634.32 ▼1.88
Add New Post /wp-admin/post-new.php1,534 ▲117.85 ▼5.38696.74 ▼11.6856.27 ▼0.37
Media Library /wp-admin/upload.php1,418 ▲304.30 ▲0.09100.47 ▼10.2446.04 ▼1.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 43× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/aw-skr/includes/lib/cmb2/includes/CMB2_hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/aw-skr/includes/lib/cmb2/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aw-skr/includes/lib/cmb2/init.php:126
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/aw-skr/includes/lib/cmb2/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/aw-skr/includes/lib/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aw-skr/includes/class-aw-skr-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/aw-skr/admin/partials/cmb-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/aw-skr/includes/lib/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/aw-skr/includes/lib/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/aw-skr/includes/lib/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: rechtsanwalt, online, berechnen, scheidung, anwalt...

aw-skr/aw-skr.php Passed 13 tests

The primary PHP file in "Scheidungskostenrechner" version 1.0.6 is used by WordPress to initiate all plugin functionality
51 characters long description:
Der Scheidungskostenrechner von RA Christian Kieppe

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
Everything looks great! No dangerous files found in this plugin47,465 lines of code in 225 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP712,2776,8198,237
CSS141,1681,1544,807
JavaScript83274991,378
Markdown22140632
SVG1001088

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity18.33
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes75
▷ Abstract classes810.67%
▷ Concrete classes6789.33%
▷ Final classes00.00%
Methods584
▷ Static methods9416.10%
▷ Public methods47681.51%
▷ Protected methods9315.92%
▷ Private methods152.57%
Functions56
▷ Named functions5191.07%
▷ Anonymous functions58.93%
Constants16
▷ Global constants1062.50%
▷ Class constants637.50%
▷ Public constants6100.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
15 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/lib/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
includes/lib/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
includes/lib/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
includes/lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
includes/lib/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%