Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.24MB] [CPU: ▼20.48ms] Passed 4 tests
This is a short check of server-side resources used by Import emails to Gmail Contacts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.06 ▼2.45 |
Dashboard /wp-admin | 3.06 ▼0.24 | 27.94 ▼22.44 |
Posts /wp-admin/edit.php | 3.20 ▼0.16 | 30.75 ▼14.36 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 69.04 ▼24.03 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 27.46 ▼21.10 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_import_mail_gmail_contacts |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Import emails to Gmail Contacts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲62 | 13.60 ▼0.98 | 4.58 ▲2.33 | 48.17 ▼3.65 |
Dashboard /wp-admin | 2,225 ▲37 | 5.87 ▼0.01 | 110.26 ▼3.86 | 79.96 ▲31.50 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 2.01 ▼0.04 | 36.68 ▲0.10 | 36.81 ▲2.68 |
Add New Post /wp-admin/post-new.php | 1,684 ▲151 | 22.68 ▼0.38 | 692.19 ▲17.65 | 50.38 ▼6.84 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.21 ▲0.04 | 105.28 ▲2.82 | 48.36 ▲5.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_import_mail_gmail_contacts
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined property: stdClass::$access_token in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php on line 52
- > PHP Notice
Undefined index: secert_id in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php on line 4
- > PHP Notice
Undefined index: cleint_id in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php on line 3
- > PHP Warning
SimpleXMLElement::__construct(): ^ in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php on line 65
- > PHP Warning
SimpleXMLElement::__construct(): { in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php on line 65
- > PHP Warning
SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php on line 65
- > PHP Notice
Undefined index: redirect_url in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php on line 5
- > PHP Fatal error
Uncaught Exception: String could not be parsed as XML in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php:65
- > PHP Notice
Undefined index: code in wp-content/plugins/import-emails-to-gmail-contacts/apiconnect.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-emails-to-gmail-contacts/import_email_to_gmail_contacts.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Screenshots: Screenshot #1 (See the Plugin in Action) image required
import-emails-to-gmail-contacts/import_email_to_gmail_contacts.php 92% from 13 tests
"Import emails to Gmail Contacts" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("import-emails-to-gmail-contacts.php" instead of "import_email_to_gmail_contacts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin516 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 122 | 56 | 306 |
CSS | 1 | 41 | 2 | 158 |
JavaScript | 2 | 21 | 4 | 52 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/logo.png | 0.72KB | 0.66KB | ▼ 8.82% |