72% hulvire-aktuality

Code Review | Hulvire Aktuality

WordPress plugin Hulvire Aktuality scored72%from 54 tests.

About plugin

  • Plugin page: hulvire-aktuality
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2015
  • Latest release: Apr 24, 2015
  • Number of updates: 53
  • Update frequency: every 0.6 days
  • Top authors: hulvire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.16ms] Passed 4 tests

Server-side resources used by Hulvire Aktuality
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.54 ▲1.61
Dashboard /wp-admin3.35 ▲0.0544.47 ▼6.22
Posts /wp-admin/edit.php3.40 ▲0.0549.90 ▲1.95
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.61 ▼17.77
Media Library /wp-admin/upload.php3.27 ▲0.0533.15 ▲1.74
Pridaj nový /wp-admin/post-new.php?post_type=hulvire_aktuality3.3344.64
Všetky aktuality /wp-admin/edit.php?post_type=hulvire_aktuality3.3237.32
Hulvire Aktuality /wp-admin/options-general.php?page=wp_hulvire_aktuality3.2735.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hulvire Aktuality
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12313.36 ▼0.942.47 ▲0.7143.80 ▲2.44
Dashboard /wp-admin2,258 ▲705.14 ▲0.1897.83 ▼6.0786.80 ▲43.61
Posts /wp-admin/edit.php2,143 ▲542.30 ▲0.3242.48 ▲1.4736.22 ▲1.70
Add New Post /wp-admin/post-new.php1,554 ▲1917.83 ▼5.61692.59 ▲86.6633.48 ▼21.85
Media Library /wp-admin/upload.php1,437 ▲464.35 ▲0.15115.43 ▲12.2247.54 ▲2.89
Pridaj nový /wp-admin/post-new.php?post_type=hulvire_aktuality1,7103.7664.2592.32
Všetky aktuality /wp-admin/edit.php?post_type=hulvire_aktuality1,1372.3734.4430.91
Hulvire Aktuality /wp-admin/options-general.php?page=wp_hulvire_aktuality7171.537.2618.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_hulvire_aktuality
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/hulvire-aktuality/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/hulvire-aktuality/templates/settings.php(5): do_settings_fields()
    #1 wp-content/plugins/hulvire-aktuality/hulvire-aktuality-settings.php(207): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): WP_Hulvire_Aktuality_Settings->plugin_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/hulvire-aktuality/hulvire-aktuality.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hulvire-aktuality/templates/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hulvire-aktuality/post-types/hulvire-aktuality-text-type.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: news, custom posts

hulvire-aktuality/hulvire-aktuality.php 92% from 13 tests

The entry point to "Hulvire Aktuality" version 1.3.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected695 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP519296628
JavaScript215440
CSS15227

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.50
▷ Minimum class complexity3.00
▷ Maximum class complexity22.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/aktuality-icon-s.png1.49KB0.63KB▼ 57.73%
images/aktuality-icon-a.png1.08KB0.25KB▼ 77.19%
images/slider-icon3.png1.49KB0.63KB▼ 57.73%