Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/bigcontact/BigContact.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; BigContact has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼185.59ms] Passed 4 tests
This is a short check of server-side resources used by BigContact Contact Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼0.92 | 4.25 ▼18.97 |
Dashboard /wp-admin | 1.93 ▼1.13 | 3.74 ▼35.30 |
Posts /wp-admin/edit.php | 1.93 ▼1.18 | 4.10 ▼27.35 |
Add New Post /wp-admin/post-new.php | 1.93 ▼3.51 | 3.92 ▼660.24 |
Media Library /wp-admin/upload.php | 1.93 ▼1.07 | 3.92 ▼19.45 |
Settings /wp-admin/admin.php?page=big-contact-settings | 1.93 | 4.58 |
Form Options /wp-admin/admin.php?page=big-contact | 1.93 | 4.81 |
Server storage [IO: ▲1.96MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 171 new files
Database: 4 new tables, 2 new options
New tables |
---|
wp_big_contacts_emails |
wp_big_contacts_phones |
wp_big_contacts |
wp_big_contacts_settings |
New WordPress options |
---|
BigContact_DB_V |
widget_bcwidget |
Browser metrics Passed 4 tests
Checking browser requirements for BigContact Contact Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,835 ▲247 | 15.95 ▲0.37 | 9.07 ▲3.05 | 76.52 ▲0.71 |
Dashboard /wp-admin | 2,967 ▲71 | 6.11 ▼0.03 | 118.08 ▼27.44 | 169.56 ▲0.71 |
Posts /wp-admin/edit.php | 2,775 ▲38 | 3.24 ▲0.00 | 62.54 ▼0.38 | 137.11 ▼2.96 |
Add New Post /wp-admin/post-new.php | 3,938 ▲208 | 19.08 ▲3.44 | 427.32 ▼12.97 | 176.40 ▲10.54 |
Media Library /wp-admin/upload.php | 1,784 ▲38 | 5.53 ▲0.00 | 148.16 ▲8.62 | 192.78 ▲5.32 |
Settings /wp-admin/admin.php?page=big-contact-settings | 2,047 | 2.38 | 53.81 | 196.73 |
Form Options /wp-admin/admin.php?page=big-contact | 1,883 | 3.24 | 62.90 | 173.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/bigcontact/BigContact.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; BigContact has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_bcwidget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=big-contact
- > Deprecated in wp-content/plugins/bigcontact/BigContact.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; BigContact has a deprecated constructor
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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bigcontact/include/contact-json.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bigcontact/classes/BigContactWidget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bigcontact/classes/BigContactWidget.php:8
- > PHP Fatal error
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 87% 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 need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Front-end view with default settings.), #2 (Form Options page), #3 (Visit the help section for quick tips about the page), #4 (Quickly use the in-place editor to customize the page), #5 (Shortcode generator), #6 (Form Settings Page)
- Tags: There are too many tags (20 tag instead of maximum 10)
bigcontact/BigContact.php 85% from 13 tests
Analyzing the main PHP file in "BigContact Contact Page" version 1.5.8
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 402 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bigcontact.php" instead of "BigContact.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected7,286 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 73 | 244 | 325 | 3,288 |
PHP | 17 | 323 | 120 | 2,440 |
CSS | 6 | 155 | 345 | 1,558 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 3 | 1.55% |
▷ Public methods | 193 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
69 PNG files occupy 1.56MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/css/red-custom/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
view/css/red-custom/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png | 0.25KB | 0.15KB | ▼ 39.45% |
view/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.12KB | 0.16KB | 0.00% |
screenshot-6.png | 125.28KB | 43.98KB | ▼ 64.89% |
view/css/red-custom/images/ui-bg_dots-small_65_a6a6a6_2x2.png | 0.08KB | 0.08KB | 0.00% |