Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.32MB] [CPU: ▲3.52ms] Passed 4 tests
Server-side resources used by oneTap - Easy Google Sign In Prompt
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.77 ▲1.31 | 50.05 ▲6.46 |
Dashboard /wp-admin | 4.61 ▲1.31 | 57.40 ▲6.31 |
Posts /wp-admin/edit.php | 4.72 ▲1.37 | 63.72 ▲13.44 |
Add New Post /wp-admin/post-new.php | 7.24 ▲1.36 | 94.28 ▼7.33 |
Media Library /wp-admin/upload.php | 4.53 ▲1.30 | 47.29 ▲8.63 |
Server storage [IO: ▲19.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2,527 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by oneTap - Easy Google Sign In Prompt
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 14.53 ▲0.28 | 3.73 ▲1.85 | 37.22 ▼6.03 |
Dashboard /wp-admin | 2,237 ▲52 | 5.63 ▲0.76 | 127.58 ▲15.72 | 44.63 ▲2.89 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.41 ▲0.38 | 41.06 ▲3.43 | 31.91 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,540 ▲10 | 23.59 ▲0.03 | 657.25 ▼23.20 | 37.09 ▼15.01 |
Media Library /wp-admin/upload.php | 1,413 ▲28 | 4.97 ▲0.73 | 100.80 ▼15.98 | 42.85 ▼9.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/onetap/view/admin-ui/settings.php
- > /wp-content/plugins/onetap/vendor/phpcompatibility/php-compatibility/phpunit-bootstrap.php
- 1144× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionSpacingSniff.php:16
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/InnerFunctionsSniff.php:15
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/LowercaseStyleDefinitionSniff.php:15
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\AsymmetricKey' not found in wp-content/plugins/onetap/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC.php:54
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Reports\\Report' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/src/Reports/Checkstyle.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/AnonClassParenthesisOwnerTest.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in onetap/assets to your readme.txt
onetap/onetap.php 92% from 13 tests
"oneTap - Easy Google Sign In Prompt" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/onetap/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,622 | 35,160 | 83,470 | 157,595 |
JavaScript | 67 | 34,870 | 29,130 | 144,875 |
Markdown | 43 | 2,714 | 0 | 8,686 |
Pascal | 123 | 2,896 | 6,117 | 6,126 |
XML | 173 | 412 | 770 | 5,935 |
JSON | 25 | 0 | 0 | 2,850 |
CSS | 41 | 189 | 100 | 673 |
SVG | 29 | 0 | 0 | 170 |
XSD | 1 | 6 | 0 | 130 |
Bourne Shell | 2 | 10 | 0 | 44 |
DOS Batch | 2 | 4 | 10 | 10 |
YAML | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 418)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 670.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 418.00 |
Code structure | ||
---|---|---|
Namespaces | 284 | |
Interfaces | 54 | |
Traits | 15 | |
Classes | 1,419 | |
▷ Abstract classes | 243 | 17.12% |
▷ Concrete classes | 1,176 | 82.88% |
▷ Final classes | 57 | 4.85% |
Methods | 5,892 | |
▷ Static methods | 800 | 13.58% |
▷ Public methods | 4,535 | 76.97% |
▷ Protected methods | 781 | 13.26% |
▷ Private methods | 576 | 9.78% |
Functions | 223 | |
▷ Named functions | 68 | 30.49% |
▷ Anonymous functions | 155 | 69.51% |
Constants | 676 | |
▷ Global constants | 142 | 21.01% |
▷ Class constants | 534 | 78.99% |
▷ Public constants | 488 | 91.39% |
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 |
assets/images/6f8660f3df8cdcc746a16451c1420363.png | 1.00KB | 1.07KB | 0.00% |