Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼142.24ms] Passed 4 tests
This is a short check of server-side resources used by Docs2Site - Export Google Docs Into WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.13 | 38.44 ▲4.47 |
Dashboard /wp-admin | 3.25 ▲0.19 | 47.32 ▲1.03 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 48.57 ▲4.94 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.13 | 91.83 ▼571.48 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 32.09 ▼2.96 |
Server storage [IO: ▲6.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,814 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Docs2Site - Export Google Docs Into WP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,692 ▲96 | 15.80 ▲0.21 | 9.14 ▲0.60 | 50.99 ▲0.96 |
Dashboard /wp-admin | 2,977 ▲46 | 5.89 ▼0.20 | 130.53 ▼7.90 | 141.61 ▲22.91 |
Posts /wp-admin/edit.php | 2,765 ▲26 | 2.68 ▼0.02 | 67.23 ▲0.51 | 87.37 ▼2.97 |
Add New Post /wp-admin/post-new.php | 1,510 ▲12 | 18.52 ▼0.37 | 399.50 ▲22.02 | 115.76 ▼1.36 |
Media Library /wp-admin/upload.php | 1,839 ▲29 | 4.99 ▼0.02 | 131.29 ▼15.86 | 152.74 ▲33.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/docs2site/vendor/automattic/vipwpcs/WordPressVIPMinimum/ruleset-test.php
- > /wp-content/plugins/docs2site/vendor/automattic/vipwpcs/tests/bootstrap.php
- > /wp-content/plugins/docs2site/vendor/phpcompatibility/php-compatibility/phpunit-bootstrap.php
- > /wp-content/plugins/docs2site/vendor/squizlabs/php_codesniffer/scripts/build-phar.php
- > /wp-content/plugins/docs2site/vendor/automattic/vipwpcs/WordPress-VIP-Go/ruleset-test.php
- 832× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionParameterSniff' not found in wp-content/plugins/docs2site/vendor/automattic/vipwpcs/WordPressVIPMinimum/Sniffs/UserExperience/AdminBarRemovalSniff.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\AbstractFunctionCallParameterSniff' not found in wp-content/plugins/docs2site/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/ParameterValues/NewPasswordAlgoConstantValuesSniff.php:31
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/docs2site/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/PostStatementCommentSniff.php:15
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/docs2site/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopShouldBeWhileLoopSniff.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/docs2site/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\Sniff' not found in wp-content/plugins/docs2site/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/Keywords/CaseSensitiveKeywordsSniff.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\AbstractNewFeatureSniff' not found in wp-content/plugins/docs2site/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/FunctionUse/NewFunctionParametersSniff.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/docs2site/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\Sniff' not found in wp-content/plugins/docs2site/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/Classes/RemovedOrphanedParentSniff.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/docs2site/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: import, google drive, export, google docs
docs2site/docs2site.php 92% from 13 tests
The entry point to "Docs2Site - Export Google Docs Into WP" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 291 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/docs2site/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/docs2site/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,017 | 22,960 | 45,438 | 96,766 |
XML | 173 | 451 | 820 | 6,389 |
Pascal | 120 | 2,528 | 5,237 | 5,437 |
Markdown | 15 | 944 | 0 | 3,807 |
JavaScript | 63 | 766 | 860 | 2,204 |
CSS | 36 | 215 | 97 | 848 |
JSON | 9 | 0 | 0 | 775 |
XSD | 1 | 6 | 0 | 130 |
Bourne Again Shell | 5 | 7 | 61 | 18 |
DOS Batch | 2 | 4 | 10 | 10 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 316)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 15.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 462.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 316.00 |
Code structure | ||
---|---|---|
Namespaces | 216 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 863 | |
▷ Abstract classes | 22 | 2.55% |
▷ Concrete classes | 841 | 97.45% |
▷ Final classes | 2 | 0.24% |
Methods | 2,575 | |
▷ Static methods | 94 | 3.65% |
▷ Public methods | 2,049 | 79.57% |
▷ Protected methods | 391 | 15.18% |
▷ Private methods | 135 | 5.24% |
Functions | 17 | |
▷ Named functions | 4 | 23.53% |
▷ Anonymous functions | 13 | 76.47% |
Constants | 143 | |
▷ Global constants | 109 | 76.22% |
▷ Class constants | 34 | 23.78% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-new.png | 0.69KB | 0.38KB | ▼ 45.07% |
assets/images/logo.png | 2.52KB | 1.22KB | ▼ 51.47% |
assets/images/icon.png | 0.41KB | 0.30KB | ▼ 28.37% |