84% datapeeps

Code Review | Fetch Danish checkout data

WordPress plugin Fetch Danish checkout data scored84%from 54 tests.

About plugin

  • Plugin page: datapeeps
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: May 1, 2023
  • Latest release: May 15, 2023
  • Number of updates: 13
  • Update frequency: every 2.0 days
  • Top authors: datapeeps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /187 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.03ms] Passed 4 tests

This is a short check of server-side resources used by Fetch Danish checkout data
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.56 ▼2.22
Dashboard /wp-admin3.38 ▲0.0845.65 ▼1.60
Posts /wp-admin/edit.php3.49 ▲0.1445.27 ▼7.84
Add New Post /wp-admin/post-new.php5.96 ▲0.0880.60 ▼8.46
Media Library /wp-admin/upload.php3.30 ▲0.0835.96 ▲4.89
Datapeeps /wp-admin/admin.php?page=datapeepsPluginSettings3.2733.62

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Fetch Danish checkout data
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.22 ▼0.961.64 ▼0.3344.43 ▲5.66
Dashboard /wp-admin2,209 ▲214.86 ▼0.01106.00 ▼3.6541.76 ▼17.34
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0436.04 ▼7.2634.59 ▼2.34
Add New Post /wp-admin/post-new.php1,538 ▲1523.21 ▲0.04678.81 ▼8.8152.61 ▼7.62
Media Library /wp-admin/upload.php1,385 ▼64.21 ▼0.0196.87 ▼2.1141.20 ▼5.01
Datapeeps /wp-admin/admin.php?page=datapeepsPluginSettings9512.0324.0325.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/datapeeps/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/datapeeps/datapeeps-checkout-data.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: danish, address, dansk, checkout, woocommerce

datapeeps/datapeeps-checkout-data.php 92% from 13 tests

The primary PHP file in "Fetch Danish checkout data" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("datapeeps.php" instead of "datapeeps-checkout-data.php")

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
Good job! No executable or dangerous file extensions detected577 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP411044406
JavaScript1309109
CSS113062

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity2.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.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
7 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png7.14KB2.97KB▼ 58.38%
assets/banner-772x250.png18.81KB7.90KB▼ 58.01%
assets/screenshot-1.png44.67KB13.96KB▼ 68.75%
logo.png4.09KB2.28KB▼ 44.33%
assets/screenshot-2.png48.58KB15.87KB▼ 67.33%