83% apicheck-automatische-adres-aanvulling

Code Review | ApiCheck: Adres & E-mail Validatie voor WooCommerce en Blocks

WordPress plugin ApiCheck: Adres & E-mail Validatie voor WooCommerce en Blocks scored83%from 54 tests.

About plugin

  • Plugin page: apicheck-automati...
  • Plugin version: 1.5.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 23, 2022
  • Latest release: Aug 17, 2023
  • Number of updates: 39
  • Update frequency: every 9.2 days
  • Top authors: apicheck (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,177 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
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼8.18ms] Passed 4 tests

Server-side resources used by ApiCheck: Adres & E-mail Validatie voor WooCommerce en Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2045.71 ▲0.66
Dashboard /wp-admin3.49 ▲0.1547.61 ▼15.44
Posts /wp-admin/edit.php3.60 ▲0.2548.80 ▲5.70
Add New Post /wp-admin/post-new.php6.07 ▲0.1997.65 ▼16.22
Media Library /wp-admin/upload.php3.41 ▲0.1934.20 ▼1.71
ApiCheck /wp-admin/admin.php?page=apicheck-automatische-adres-aanvulling/back/apichecknl_options_page.php3.3833.88

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for ApiCheck: Adres & E-mail Validatie voor WooCommerce en Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.53 ▼1.121.50 ▼0.3139.35 ▼4.46
Dashboard /wp-admin2,218 ▲305.81 ▲0.00102.91 ▼6.6040.63 ▼6.49
Posts /wp-admin/edit.php2,106 ▲172.06 ▲0.0040.82 ▼1.5838.38 ▲3.21
Add New Post /wp-admin/post-new.php1,429 ▼9917.17 ▼0.99521.32 ▼157.9331.62 ▼28.23
Media Library /wp-admin/upload.php1,397 ▲94.20 ▲0.0199.94 ▲0.5738.90 ▼4.84
ApiCheck /wp-admin/admin.php?page=apicheck-automatische-adres-aanvulling/back/apichecknl_options_page.php8942.1625.0329.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apicheck-automatische-adres-aanvulling/front/apichecknl_lookup_call.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apicheck-automatische-adres-aanvulling/back/apichecknl_options_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apicheck-automatische-adres-aanvulling/front/apichecknl_email_validation_call.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apicheck-automatische-adres-aanvulling/front/apichecknl_search_call.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

apicheck-automatische-adres-aanvulling/api-check.php 69% from 13 tests

The principal PHP file in "ApiCheck: Adres & E-mail Validatie voor WooCommerce en Blocks" v. 1.5.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("apicheck-automatische-adres-aanvulling.php" instead of "api-check.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "3.7.0")
  • Description: The description should be shorter than 140 characters (currently 229 characters long)

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
Success! There were no dangerous files found in this plugin2,223 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript513389882
PHP615187761
PO File387132403
CSS518082
JSON30072
Markdown115023

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants642.86%
▷ Class constants857.14%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png5.87KB3.51KB▼ 40.26%