84% fuvar-hu-api

Code Review | Fuvar.HU Api

WordPress plugin Fuvar.HU Api scored84%from 54 tests.

About plugin

  • Plugin page: fuvar-hu-api
  • Plugin version: 1.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.1-6.1
  • WordPress version: 6.3.1
  • First release: May 4, 2021
  • Latest release: Mar 23, 2023
  • Number of updates: 21
  • Update frequency: every 34.7 days
  • Top authors: fuvarhu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.80ms] Passed 4 tests

This is a short check of server-side resources used by Fuvar.HU Api
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.61 ▲0.06
Dashboard /wp-admin3.32 ▲0.0147.84 ▲1.38
Posts /wp-admin/edit.php3.37 ▲0.0146.75 ▼14.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.01 ▲4.72
Media Library /wp-admin/upload.php3.24 ▲0.0135.63 ▲1.45

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Fuvar.HU Api
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.181.75 ▲0.0543.96 ▲0.37
Dashboard /wp-admin2,209 ▲245.90 ▲0.0899.58 ▲2.0541.46 ▼1.56
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0435.71 ▼4.3334.60 ▼8.71
Add New Post /wp-admin/post-new.php1,543 ▲2918.44 ▲0.84628.16 ▼65.5262.81 ▲4.68
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.1293.04 ▼9.1941.67 ▼3.54

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Please fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/fuvar-hu-api/fuvarhu.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fuvar-hu-api/inc/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fuvar-hu-api/inc/shipping_method.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fuvar-hu-api/inc/product.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fuvar-hu-api/inc/single_action.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fuvar-hu-api/inc/group_action.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === fuvar-hu-api === )
Please take inspiration from this readme.txt

fuvar-hu-api/fuvarhu.php 92% from 13 tests

The main PHP file in "Fuvar.HU Api" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fuvar-hu-api.php" instead of "fuvarhu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin789 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP917734789

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity2.40
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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