83% apicheck-contact-form

Code Review | ApiCheck Adres Aanvulling & Validatie voor Contact Form 7

WordPress plugin ApiCheck Adres Aanvulling & Validatie voor Contact Form 7 scored83%from 54 tests.

About plugin

  • Plugin page: apicheck-contact-...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Dec 10, 2022
  • Latest release: Aug 8, 2023
  • Number of updates: 10
  • Update frequency: every 24.3 days
  • Top authors: apicheck (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /290 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by ApiCheck Adres Aanvulling & Validatie voor Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0741.00 ▲1.74
Dashboard /wp-admin3.38 ▲0.0744.10 ▼3.33
Posts /wp-admin/edit.php3.49 ▲0.1343.55 ▼5.87
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.71 ▼19.35
Media Library /wp-admin/upload.php3.30 ▲0.0735.44 ▼2.26

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for ApiCheck Adres Aanvulling & Validatie voor Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.72 ▲0.481.69 ▲0.1743.61 ▲5.67
Dashboard /wp-admin2,204 ▲275.56 ▼0.0984.96 ▼2.3739.72 ▼0.75
Posts /wp-admin/edit.php2,112 ▲122.00 ▲0.0234.07 ▼4.5236.76 ▲2.79
Add New Post /wp-admin/post-new.php1,538 ▲1223.18 ▲0.19599.72 ▼73.8445.87 ▼14.02
Media Library /wp-admin/upload.php1,409 ▲64.19 ▲0.06105.47 ▼0.0846.18 ▼3.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apicheck-contact-form/back/apicheckcontactform_options_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apicheck-contact-form/front/apicheckcontactform_search_call.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apicheck-contact-form/front/apicheckcontactform_lookup_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)
No browser issues were found


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: The official readme.txt might help

apicheck-contact-form/api-check.php 77% from 13 tests

The main PHP file in "ApiCheck Adres Aanvulling & Validatie voor Contact Form 7" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 205 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("apicheck-contact-form.php" instead of "api-check.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 plugin834 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.50
▷ Minimum class complexity4.00
▷ Maximum class complexity13.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants650.00%
▷ Class constants650.00%
▷ Public constants6100.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%