Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.86MB] [CPU: ▲6.20ms] Passed 4 tests
Analyzing server-side resources used by Presets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 38.13 ▼6.02 |
Dashboard /wp-admin | 4.32 ▲1.01 | 57.32 ▲3.83 |
Posts /wp-admin/edit.php | 4.35 ▲0.99 | 62.62 ▲14.26 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.97 | 109.53 ▲17.59 |
Media Library /wp-admin/upload.php | 4.18 ▲0.96 | 47.34 ▲12.74 |
All Presets /wp-admin/edit.php?post_type=presets | 4.23 | 47.21 |
Tags /wp-admin/edit-tags.php?taxonomy=presets_tags&post_type=presets | 4.18 | 45.18 |
Add New /wp-admin/post-new.php?post_type=presets | 4.76 | 62.33 |
Server storage [IO: ▲8.50MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,979 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Presets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 14.45 ▲0.04 | 2.03 ▲0.29 | 39.49 ▼7.23 |
Dashboard /wp-admin | 2,258 ▲70 | 4.93 ▼0.97 | 109.62 ▲5.54 | 42.37 ▼2.02 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.10 ▲0.10 | 40.76 ▲5.27 | 35.88 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 18.52 ▲1.04 | 609.26 ▼72.68 | 54.44 ▼1.25 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.29 ▼0.03 | 103.84 ▼6.27 | 41.41 ▼8.22 |
All Presets /wp-admin/edit.php?post_type=presets | 1,110 | 2.00 | 35.55 | 29.39 |
Tags /wp-admin/edit-tags.php?taxonomy=presets_tags&post_type=presets | 1,285 | 2.30 | 29.59 | 28.11 |
Add New /wp-admin/post-new.php?post_type=presets | 3,181 | 7.42 | 163.66 | 71.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/presets/vendor/cmb2/cmb2/apigen/hook-docs.php
- 641× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php:14
- > PHP Warning
file_put_contents(/Users/JT/Sites/wpengine/api/hook-docs.html): failed to open stream: No such file or directory in wp-content/plugins/presets/vendor/cmb2/cmb2/apigen/hook-docs.php on line 229
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php:19
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Functions/NullableTypeDeclarationSniff.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/BackfillNumericSeparatorTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneClassPerFileSniff.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/presets/vendor/cmb2/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > 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 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
2 plugin tags: tests, debug
presets/presets.php 92% from 13 tests
The main file in "Presets" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Git Repository: Please do not include Git repositories in your plugin
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/presets/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 839 | 21,057 | 34,674 | 80,343 |
PO File | 120 | 14,315 | 18,502 | 32,323 |
XML | 145 | 209 | 292 | 8,949 |
JSON | 12 | 0 | 0 | 6,923 |
Pascal | 130 | 3,217 | 7,090 | 6,548 |
CSS | 48 | 554 | 1,298 | 5,699 |
JavaScript | 77 | 1,338 | 1,701 | 5,006 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 14 | 375 | 0 | 1,182 |
Bourne Shell | 4 | 67 | 45 | 209 |
YAML | 3 | 16 | 6 | 205 |
XSD | 1 | 6 | 0 | 130 |
diff | 2 | 1 | 68 | 34 |
DOS Batch | 2 | 4 | 10 | 10 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 478)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 15.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 721.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 478.00 |
Code structure | ||
---|---|---|
Namespaces | 160 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 703 | |
▷ Abstract classes | 23 | 3.27% |
▷ Concrete classes | 680 | 96.73% |
▷ Final classes | 1 | 0.15% |
Methods | 2,702 | |
▷ Static methods | 198 | 7.33% |
▷ Public methods | 2,359 | 87.31% |
▷ Protected methods | 293 | 10.84% |
▷ Private methods | 50 | 1.85% |
Functions | 51 | |
▷ Named functions | 40 | 78.43% |
▷ Anonymous functions | 11 | 21.57% |
Constants | 129 | |
▷ Global constants | 120 | 93.02% |
▷ Class constants | 9 | 6.98% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
vendor/cmb2/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/resize.png | 0.12KB | 0.10KB | ▼ 13.22% |