84% wp-fahrkostenrechner

Code Review | WP Fahrkostenrechner

WordPress plugin WP Fahrkostenrechner scored84%from 54 tests.

About plugin

  • Plugin page: wp-fahrkostenrechner
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2019
  • Latest release: Mar 24, 2019
  • Number of updates: 11
  • Update frequency: every 0.9 days
  • Top authors: agenturwehrli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,887 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.48ms] Passed 4 tests

An overview of server-side resources used by WP Fahrkostenrechner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.25 ▲5.68
Dashboard /wp-admin3.32 ▲0.0249.02 ▲2.42
Posts /wp-admin/edit.php3.37 ▲0.0242.66 ▼3.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.09 ▼5.27
Media Library /wp-admin/upload.php3.24 ▲0.0235.26 ▼3.26

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Fahrkostenrechner
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.171.82 ▼0.0145.19 ▼3.46
Dashboard /wp-admin2,203 ▲155.77 ▼0.0996.95 ▼7.1536.68 ▼8.60
Posts /wp-admin/edit.php2,092 ▼02.04 ▼0.0135.60 ▼2.3932.22 ▼1.88
Add New Post /wp-admin/post-new.php1,533 ▼023.09 ▼0.17649.08 ▼16.3751.58 ▼2.96
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.1297.59 ▲0.8743.82 ▲3.74

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-fahrkostenrechner/wp-fahrkostenrechner.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: easy, google distance api, free

wp-fahrkostenrechner/wp-fahrkostenrechner.php 92% from 13 tests

The principal PHP file in "WP Fahrkostenrechner" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181680

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin