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
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.88ms] Passed 4 tests
A check of server-side resources used by Hoo Docx Document File Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 37.26 ▲0.86 |
Dashboard /wp-admin | 3.55 ▲0.25 | 51.14 ▲0.93 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.03 ▲3.51 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.21 ▼8.83 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 38.21 ▲3.86 |
Hoo Docx Document File Importer /wp-admin/options-general.php?page=hoo-document-importer | 5.16 | 61.60 |
Server storage [IO: ▲2.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 671 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hoo Docx Document File Importer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 15.11 ▲0.81 | 1.85 ▼0.10 | 41.99 ▼1.58 |
Dashboard /wp-admin | 2,352 ▲167 | 6.46 ▲0.60 | 131.33 ▲28.59 | 40.28 ▼0.50 |
Posts /wp-admin/edit.php | 2,258 ▲169 | 3.34 ▲1.34 | 50.98 ▲9.36 | 32.35 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.22 ▼0.22 | 626.52 ▲26.97 | 35.72 ▼12.53 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.09 | 84.61 ▼10.96 | 42.70 ▼1.04 |
Hoo Docx Document File Importer /wp-admin/options-general.php?page=hoo-document-importer | 1,026 | 3.17 | 39.50 | 24.95 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
- 394× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Reader\\Word2007\\AbstractPart' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007/Styles.php:29
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Element\\AbstractElement' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/Element/TOC.php:27
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\Word2007\\Element\\AbstractElement' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/Writer/Word2007/Element/ListItemRun.php:28
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\AbstractWriter' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/Writer/HTML.php:28
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/hoo-document-importer/vendor/twig/twig/src/Node/Expression/Binary/ConcatBinary.php:17
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\Word2007\\Style\\AbstractStyle' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/Writer/ODText/Style/AbstractStyle.php:27
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Shared\\AbstractEnum' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/SimpleType/LineSpacingRule.php:29
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\ODText\\Element\\AbstractElement' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/Writer/ODText/Element/Title.php:25
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\Word2007\\Element\\AbstractElement' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/Writer/ODText/Element/AbstractElement.php:27
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Element\\AbstractElement' not found in wp-content/plugins/hoo-document-importer/vendor/phpoffice/phpword/src/PhpWord/Element/Row.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
hoo-document-importer/hoo-document-importer.php 85% from 13 tests
The primary PHP file in "Hoo Docx Document File Importer" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected44,494 lines of code in 650 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 500 | 8,458 | 26,051 | 39,156 |
reStructuredText | 114 | 2,494 | 2,409 | 2,934 |
Markdown | 12 | 194 | 0 | 804 |
JSON | 8 | 0 | 0 | 722 |
YAML | 7 | 86 | 38 | 385 |
JavaScript | 2 | 30 | 2 | 155 |
make | 1 | 24 | 5 | 124 |
XML | 3 | 6 | 3 | 105 |
Twig | 1 | 7 | 0 | 58 |
Python | 1 | 73 | 165 | 33 |
CSS | 1 | 1 | 0 | 18 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 116)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 116.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 15 | |
Traits | 0 | |
Classes | 464 | |
▷ Abstract classes | 35 | 7.54% |
▷ Concrete classes | 429 | 92.46% |
▷ Final classes | 74 | 17.25% |
Methods | 2,624 | |
▷ Static methods | 244 | 9.30% |
▷ Public methods | 2,133 | 81.29% |
▷ Protected methods | 196 | 7.47% |
▷ Private methods | 295 | 11.24% |
Functions | 172 | |
▷ Named functions | 155 | 90.12% |
▷ Anonymous functions | 17 | 9.88% |
Constants | 606 | |
▷ Global constants | 75 | 12.38% |
▷ Class constants | 531 | 87.62% |
▷ Public constants | 530 | 99.81% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/phpoffice/phpword/src/PhpWord/resources/xls.png | 1.88KB | 1.82KB | ▼ 3.27% |
vendor/phpoffice/phpword/src/PhpWord/resources/ppt.png | 1.84KB | 1.79KB | ▼ 2.97% |
vendor/phpoffice/phpword/src/PhpWord/resources/doc.png | 1.13KB | 1.09KB | ▼ 3.37% |