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.32MB] [CPU: ▼4.38ms] Passed 4 tests
Analyzing server-side resources used by WPSyncSheets Lite For Contact Form 7 - Contact Form 7 Google Spreadsheet Addon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 43.86 ▼3.95 |
Dashboard /wp-admin | 3.67 ▲0.37 | 48.88 ▼1.06 |
Posts /wp-admin/edit.php | 3.73 ▲0.36 | 51.84 ▲1.06 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 85.18 ▼13.56 |
Media Library /wp-admin/upload.php | 3.54 ▲0.30 | 36.99 ▲1.92 |
Documentation /wp-admin/admin.php?page=documentation | 3.48 | 35.44 |
For Contact Form 7 /wp-admin/admin.php?page=wpsyncsheets-contact-form-7 | 3.49 | 36.36 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 759 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
active_contactsheets |
wpssc_database_updated |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WPSyncSheets Lite For Contact Form 7 - Contact Form 7 Google Spreadsheet Addon: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲81 | 14.05 ▼0.29 | 1.53 ▼0.32 | 40.68 ▼3.53 |
Dashboard /wp-admin | 2,245 ▲65 | 5.59 ▼0.04 | 84.33 ▼3.96 | 77.94 ▲35.91 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 1.99 ▲0.02 | 34.90 ▼3.43 | 33.57 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,573 ▲46 | 23.09 ▼0.05 | 723.90 ▲40.53 | 53.13 ▼6.64 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.21 ▼0.00 | 97.05 ▲2.22 | 69.22 ▲26.14 |
Documentation /wp-admin/admin.php?page=documentation | 714 | 1.53 | 7.45 | 15.71 |
For Contact Form 7 /wp-admin/admin.php?page=wpsyncsheets-contact-form-7 | 999 | 1.75 | 26.59 | 37.71 |
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 were found after uninstall: 8 options
- can_compress_scripts
- active_contactsheets
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- wpssc_database_updated
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=documentation
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/contactsheets-lite/lib/vendor/firebase/php-jwt/tests/bootstrap.php
- > /wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient/examples/large-file-upload.php
- > /wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient/examples/multi-api.php
- > /wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient/examples/index.php
- > /wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient/examples/idtoken.php
- > /wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient/examples/simple-file-upload.php
- > /wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient/examples/url-shortener.php
- 546× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/UpdateDeveloperMetadataRequest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/contactsheets-lite/lib/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\Tests\\BaseTest' not found in wp-content/plugins/contactsheets-lite/lib/vendor/google/auth/tests/HttpHandler/HttpHandlerFactoryTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient/tests/examples/simpleFileUploadTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient-services/src/Google/Service/Drive/CommentQuotedFileContent.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/WaterfallChartSeries.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient-services/src/Google/Service/Drive/ChangeList.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/contactsheets-lite/lib/vendor/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/contactsheets-lite/lib/vendor/google/apiclient-services/src/Google/Service/Sheets/PivotGroupRule.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/contactsheets-lite/lib/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
contactsheets-lite/wpsyncsheets-lite-contact-form-7.php 85% from 13 tests
"WPSyncSheets Lite For Contact Form 7 - Contact Form 7 Google Spreadsheet Addon" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contactsheets-lite.php" instead of "wpsyncsheets-lite-contact-form-7.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin72,119 lines of code in 721 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 657 | 10,547 | 34,138 | 65,278 |
Markdown | 28 | 1,325 | 0 | 4,393 |
JSON | 15 | 0 | 0 | 1,140 |
CSS | 2 | 19 | 15 | 532 |
JavaScript | 2 | 16 | 17 | 320 |
XML | 7 | 32 | 42 | 252 |
YAML | 5 | 32 | 1 | 115 |
Bourne Shell | 1 | 3 | 4 | 31 |
make | 2 | 11 | 0 | 31 |
SVG | 1 | 0 | 1 | 22 |
INI | 1 | 0 | 1 | 5 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 626.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 41 | |
Interfaces | 25 | |
Traits | 5 | |
Classes | 643 | |
▷ Abstract classes | 11 | 1.71% |
▷ Concrete classes | 632 | 98.29% |
▷ Final classes | 6 | 0.95% |
Methods | 5,186 | |
▷ Static methods | 139 | 2.68% |
▷ Public methods | 4,727 | 91.15% |
▷ Protected methods | 204 | 3.93% |
▷ Private methods | 255 | 4.92% |
Functions | 293 | |
▷ Named functions | 86 | 29.35% |
▷ Anonymous functions | 207 | 70.65% |
Constants | 336 | |
▷ Global constants | 35 | 10.42% |
▷ Class constants | 301 | 89.58% |
▷ Public constants | 301 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.23MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/sprite-icon.png | 5.31KB | 4.67KB | ▼ 12.07% |
assets/css/images/pro_features.png | 107.91KB | 46.44KB | ▼ 56.96% |
assets/images/sprite-icon.png | 6.67KB | 5.41KB | ▼ 18.88% |
assets/images/logo.png | 6.03KB | 4.81KB | ▼ 20.17% |
assets/images/notice-logo.png | 6.45KB | 5.01KB | ▼ 22.37% |