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
Installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼9.26ms] Passed 4 tests
Analyzing server-side resources used by Zu Contact
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 42.21 ▼3.31 |
Dashboard /wp-admin | 3.68 ▲0.33 | 49.48 ▼20.83 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 49.29 ▲1.68 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 90.61 ▼13.61 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 36.04 ▲0.71 |
/wp-admin/options-general.php?page=separator_moved_position | 3.37 | 32.70 |
Zu Contact /wp-admin/options-general.php?page=zucontact-settings | 3.55 | 36.65 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 7 new options
New WordPress options |
---|
zucontact_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Zu Contact
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,998 ▲227 | 13.65 ▼0.97 | 7.55 ▲5.62 | 42.60 ▼2.36 |
Dashboard /wp-admin | 2,215 ▲30 | 4.84 ▼0.09 | 101.00 ▼5.94 | 41.05 ▼0.67 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.03 ▼0.02 | 37.31 ▼5.20 | 31.40 ▼6.48 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,667 | 19.15 ▼4.08 | 863.90 ▲209.30 | 63.44 ▲3.54 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.04 | 96.90 ▼21.07 | 41.07 ▼7.36 |
/wp-admin/options-general.php?page=separator_moved_position | 28 | 0.44 | 0.08 | 3.79 |
Zu Contact /wp-admin/options-general.php?page=zucontact-settings | 1,242 | 12.38 | 263.78 | 32.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/zu-contact/zu-contact.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'zukit_SingletonLogging' not found in wp-content/plugins/zu-contact/zukit/snippets/hub.php:17
- > PHP Fatal error
Uncaught Error: Class 'zu_ContactFields' not found in wp-content/plugins/zu-contact/includes/forms/contact.php:7
- > PHP Fatal error
Uncaught Error: Class 'zukit_Addon' not found in wp-content/plugins/zu-contact/zukit/zukit-blocks.php:8
- > PHP Fatal error
Uncaught Error: Class 'zu_ContactFields' not found in wp-content/plugins/zu-contact/includes/forms/default.php:7
- > PHP Warning
Use of undefined constant HOUR_IN_SECONDS - assumed 'HOUR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/zu-contact/zukit/load.php on line 102
- > PHP Fatal error
Uncaught Error: Class 'zu_ContactFields' not found in wp-content/plugins/zu-contact/includes/forms/booking.php:7
- > PHP Fatal error
Uncaught Error: Class 'zukit_Plugin' not found in wp-content/plugins/zu-contact/includes/zucontact-plugin.php:10
- > PHP Fatal error
Uncaught Error: Class 'zu_ContactFields' not found in wp-content/plugins/zu-contact/includes/forms/subscribe.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=separator_moved_position
- > Network (severe)
wp-admin/options-general.php?page=separator_moved_position - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 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
7 plugin tags: email, feedback form, contact form, contact, feedback...
zu-contact/zu-contact.php Passed 13 tests
"Zu Contact" version 1.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Simple but smart and modern Ajax contact form. With Form Blocks and Gutenberg based settings page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin6,266 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,076 | 735 | 5,399 |
PO File | 4 | 236 | 236 | 639 |
JavaScript | 6 | 39 | 30 | 205 |
SVG | 3 | 0 | 0 | 13 |
CSS | 6 | 0 | 0 | 6 |
JSON | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 22.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 31 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 479 | |
▷ Static methods | 13 | 2.71% |
▷ Public methods | 287 | 59.92% |
▷ Protected methods | 94 | 19.62% |
▷ Private methods | 98 | 20.46% |
Functions | 52 | |
▷ Named functions | 18 | 34.62% |
▷ Anonymous functions | 34 | 65.38% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin