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: ▲0.21MB] [CPU: ▼8.52ms] Passed 4 tests
Server-side resources used by Wordpress Book List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 38.07 ▼4.69 |
Dashboard /wp-admin | 3.52 ▲0.18 | 46.18 ▼16.05 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.82 ▲3.88 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 89.25 ▼14.69 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 35.40 ▲1.34 |
Publishers /wp-admin/edit-tags.php?taxonomy=books_publisher&post_type=books | 3.44 | 35.02 |
Authors /wp-admin/edit-tags.php?taxonomy=books_author&post_type=books | 3.44 | 33.25 |
Books /wp-admin/edit.php?post_type=books | 3.49 | 34.60 |
Server storage [IO: ▲5.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 1,663 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wordpress Book List
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.40 ▼0.36 | 1.71 ▼0.60 | 45.27 ▲2.39 |
Dashboard /wp-admin | 2,227 ▲47 | 5.64 ▼0.01 | 83.59 ▼8.03 | 37.44 ▼3.73 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.02 ▲0.02 | 38.58 ▲2.04 | 30.65 ▼4.04 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.21 ▲0.26 | 622.76 ▲1.02 | 51.07 ▼18.60 |
Media Library /wp-admin/upload.php | 1,426 ▲32 | 4.22 ▲0.06 | 99.54 ▼3.01 | 43.29 ▲2.47 |
Publishers /wp-admin/edit-tags.php?taxonomy=books_publisher&post_type=books | 1,277 | 2.11 | 30.42 | 27.89 |
Authors /wp-admin/edit-tags.php?taxonomy=books_author&post_type=books | 1,308 | 2.13 | 28.18 | 27.21 |
Books /wp-admin/edit.php?post_type=books | 1,168 | 1.98 | 31.03 | 30.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-publication-manager/vendor/automattic/vipwpcs/WordPressVIPMinimum/ruleset-test.php
- > /wp-content/plugins/wp-publication-manager/vendor/automattic/vipwpcs/tests/bootstrap.php
- > /wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/scripts/build-phar.php
- > /wp-content/plugins/wp-publication-manager/vendor/automattic/vipwpcs/WordPress-VIP-Go/ruleset-test.php
- 707× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php:19
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\Sniff' not found in wp-content/plugins/wp-publication-manager/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayIndentationSniff.php:29
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php:16
- > PHP Fatal error
Uncaught Error: Class 'WordPressVIPMinimum\\Sniffs\\Sniff' not found in wp-content/plugins/wp-publication-manager/vendor/automattic/vipwpcs/WordPressVIPMinimum/Sniffs/Security/EscapingVoidReturnFunctionsSniff.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColourDefinitionSniff.php:15
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionRestrictionsSniff' not found in wp-content/plugins/wp-publication-manager/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/I18nSniff.php:35
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/tests/Core/Filters/Filter/AcceptTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceBeforeCastSniff.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: contact, contact us, contactum
wp-publication-manager/wpum.php 92% from 13 tests
"Wordpress Book List" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-publication-manager.php" instead of "wpum.php")
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
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/wp-publication-manager/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 885 | 19,941 | 34,964 | 76,243 |
XML | 168 | 410 | 757 | 5,984 |
Pascal | 120 | 2,528 | 5,237 | 5,437 |
JavaScript | 65 | 791 | 862 | 2,248 |
Markdown | 11 | 516 | 0 | 2,195 |
CSS | 38 | 251 | 203 | 1,590 |
JSON | 1 | 0 | 0 | 219 |
XSD | 1 | 6 | 0 | 130 |
Bourne Again Shell | 5 | 7 | 61 | 18 |
DOS Batch | 2 | 4 | 10 | 10 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 316)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 15.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 462.00 |
Average method complexity | 6.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 316.00 |
Code structure | ||
---|---|---|
Namespaces | 190 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 734 | |
▷ Abstract classes | 17 | 2.32% |
▷ Concrete classes | 717 | 97.68% |
▷ Final classes | 2 | 0.28% |
Methods | 2,098 | |
▷ Static methods | 68 | 3.24% |
▷ Public methods | 1,735 | 82.70% |
▷ Protected methods | 269 | 12.82% |
▷ Private methods | 94 | 4.48% |
Functions | 12 | |
▷ Named functions | 6 | 50.00% |
▷ Anonymous functions | 6 | 50.00% |
Constants | 131 | |
▷ Global constants | 104 | 79.39% |
▷ Class constants | 27 | 20.61% |
▷ Public constants | 27 | 100.00% |
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
No PNG files were detected