Benchmarks
Plugin footprint 65% 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.15MB] [CPU: ▼8.71ms] Passed 4 tests
A check of server-side resources used by Contact Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.27 ▲0.76 |
Dashboard /wp-admin | 3.47 ▲0.12 | 45.50 ▼21.87 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.42 ▲0.71 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 85.06 ▼13.62 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.56 ▼0.07 |
Server storage [IO: ▲0.91MB] [DB: ▲0.03MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 82 new files
Database: 3 new tables, 13 new options
New tables |
---|
wp_contact_manager_messages |
wp_contact_manager_forms |
wp_contact_manager_forms_categories |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
contact_manager_statistics |
widget_recent-comments |
contact_manager_forms_categories |
contact_manager_forms |
contact_manager_back_office |
contact_manager_cron |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.24 ▼0.38 | 1.82 ▲0.03 | 44.12 ▼2.14 |
Dashboard /wp-admin | 2,210 ▲39 | 5.74 ▲0.15 | 81.56 ▼6.45 | 78.49 ▲39.23 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.97 ▲0.01 | 35.29 ▼0.79 | 33.96 ▼1.55 |
Add New Post /wp-admin/post-new.php | 6,423 ▲4,895 | 27.76 ▲4.68 | 994.16 ▲297.60 | 65.41 ▲8.74 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.19 ▲0.01 | 100.11 ▼11.96 | 69.92 ▲24.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_contact_manager_forms
- wp_contact_manager_forms_categories
- wp_contact_manager_messages
- Zombie WordPress options were found after uninstall: 13 options
- contact_manager_statistics
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- contact_manager_forms
- widget_recent-posts
- contact_manager_back_office
- contact_manager_forms_categories
- contact_manager_messages
- contact_manager
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/contact-manager/includes/forms/index.php
- > /wp-content/plugins/contact-manager/libraries/index.php
- > /wp-content/plugins/contact-manager/includes/index.php
- > /wp-content/plugins/contact-manager/index.php
- > /wp-content/plugins/contact-manager/images/index.php
- > /wp-content/plugins/contact-manager/languages/index.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/contact-manager/includes/preview.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3, #4 in contact-manager/assets to your readme.txt
contact-manager/contact-manager.php Passed 13 tests
The main file in "Contact Manager" v. 8.6.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Allows you to create and manage your contact forms and messages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected9,980 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 634 | 238 | 7,884 |
PO File | 2 | 857 | 0 | 1,920 |
CSS | 2 | 37 | 1 | 172 |
JavaScript | 2 | 0 | 17 | 2 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 5.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 2 | 1.39% |
▷ Public methods | 122 | 84.72% |
▷ Protected methods | 18 | 12.50% |
▷ Private methods | 4 | 2.78% |
Functions | 144 | |
▷ Named functions | 134 | 93.06% |
▷ Anonymous functions | 10 | 6.94% |
Constants | 15 | |
▷ Global constants | 15 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/date-picker.png | 0.60KB | 0.58KB | ▼ 1.96% |
images/icon.png | 0.10KB | 0.08KB | ▼ 17.65% |