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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 45.71 ▲0.66 |
Dashboard /wp-admin | 3.49 ▲0.15 | 47.61 ▼15.44 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 48.80 ▲5.70 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 97.65 ▼16.22 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 34.20 ▼1.71 |
ApiCheck /wp-admin/admin.php?page=apicheck-automatische-adres-aanvulling/back/apichecknl_options_page.php | 3.38 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.53 ▼1.12 | 1.50 ▼0.31 | 39.35 ▼4.46 |
Dashboard /wp-admin | 2,218 ▲30 | 5.81 ▲0.00 | 102.91 ▼6.60 | 40.63 ▼6.49 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.06 ▲0.00 | 40.82 ▼1.58 | 38.38 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,429 ▼99 | 17.17 ▼0.99 | 521.32 ▼157.93 | 31.62 ▼28.23 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▲0.01 | 99.94 ▲0.57 | 38.90 ▼4.84 |
ApiCheck /wp-admin/admin.php?page=apicheck-automatische-adres-aanvulling/back/apichecknl_options_page.php | 894 | 2.16 | 25.03 | 29.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
- > PHP Fatal error
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:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in apicheck-automatische-adres-aanvulling/assets to your readme.txt
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 133 | 89 | 882 |
PHP | 6 | 151 | 87 | 761 |
PO File | 3 | 87 | 132 | 403 |
CSS | 5 | 18 | 0 | 82 |
JSON | 3 | 0 | 0 | 72 |
Markdown | 1 | 15 | 0 | 23 |
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 code | 0.33 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 8 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 5.87KB | 3.51KB | ▼ 40.26% |