79% hilfe

Code Review | HILFE AR

WordPress plugin HILFE AR scored79%from 54 tests.

About plugin

  • Plugin page: hilfe
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2023
  • Latest release: Jul 24, 2023
  • Number of updates: 11
  • Update frequency: every 10.7 days
  • Top authors: fswadeveloper (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /183 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼8.70ms] Passed 4 tests

Analyzing server-side resources used by HILFE AR
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3541.21 ▼0.26
Dashboard /wp-admin3.68 ▲0.3348.95 ▼14.70
Posts /wp-admin/edit.php3.73 ▲0.3755.85 ▲7.85
Add New Post /wp-admin/post-new.php6.20 ▲0.3182.22 ▼20.05
Media Library /wp-admin/upload.php3.51 ▲0.2834.32 ▲0.21
Popup guide /wp-admin/admin.php?page=hilfe-guide3.5636.13
Shortcode /wp-admin/admin.php?page=hilfe-shortcode3.5239.06
Dashboard /wp-admin/admin.php?page=hilfe-dashboard3.5136.44
Edit shortcode /wp-admin/admin.php?page=hilfe-shortcode-edit3.5235.02

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by HILFE AR
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,443 ▲69715.56 ▲1.186.14 ▲4.0452.44 ▲6.82
Dashboard /wp-admin2,379 ▲1916.58 ▲1.66129.83 ▲6.9093.69 ▲48.67
Posts /wp-admin/edit.php2,297 ▲2083.52 ▲1.4957.12 ▲21.1278.83 ▲42.62
Add New Post /wp-admin/post-new.php1,555 ▲1323.17 ▲4.63659.74 ▲25.9635.61 ▼20.50
Media Library /wp-admin/upload.php1,442 ▲574.30 ▲0.1282.28 ▼21.1783.24 ▲39.93
Popup guide /wp-admin/admin.php?page=hilfe-guide1,7343.7757.5279.80
Shortcode /wp-admin/admin.php?page=hilfe-shortcode1,4323.1639.6878.22
Dashboard /wp-admin/admin.php?page=hilfe-dashboard3,4885.75119.56687.82
Edit shortcode /wp-admin/admin.php?page=hilfe-shortcode-edit2,1123.8048.5134.01

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hilfe/admin/partials/hilfe-admin-display.php
    • > /wp-content/plugins/hilfe/public/partials/hilfe-display.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'HILFE_Admin_Base' not found in wp-content/plugins/hilfe/admin/class-hilfe-admin-dashboard.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/hilfe/admin/partials/hilfe-admin-guide-display.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'HILFE_Admin_Base' not found in wp-content/plugins/hilfe/admin/class-hilfe-admin-shortcode-edit.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/hilfe/admin/partials/hilfe-admin-dashboard-display.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'HILFE_Admin_Base' not found in wp-content/plugins/hilfe/admin/class-hilfe-admin-guide.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hilfe/admin/partials/hilfe-admin-shortcode-edit-display.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'HILFE_Public_Base' not found in wp-content/plugins/hilfe/public/class-hilfe-public-guide.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/hilfe/admin/partials/hilfe-admin-shortcode-display.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'HILFE_Public_Base' not found in wp-content/plugins/hilfe/public/class-hilfe-public-shortcode.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'HILFE_Model_Base' not found in wp-content/plugins/hilfe/model/class-hilfe-model-shortcode.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
5 plugin tags: augmented reality, electronic commerce, virtual reality, booking, reservation

hilfe/hilfe.php Passed 13 tests

The principal PHP file in "HILFE AR" v. 1.0.0 is loaded by WordPress automatically on each request
137 characters long description:
HILFE AR plugin helps add more functions to banner and guidance editing , which will make it easier to manage a post of a wordpress site.

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
There were no executable files found in this plugin2,546 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP313161,1671,774
PO File2158186373
CSS211329365
JavaScript296025
SVG9009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes314.29%
▷ Concrete classes1885.71%
▷ Final classes00.00%
Methods71
▷ Static methods34.23%
▷ Public methods5881.69%
▷ Protected methods45.63%
▷ Private methods912.68%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/logo/logo20x20.png2.25KB1.28KB▼ 43.18%
public/images/icon/googleplay.png5.78KB2.77KB▼ 52.01%
public/images/logo/logo512x512.png62.29KB24.80KB▼ 60.19%