Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼5.16ms] Passed 4 tests
An overview of server-side resources used by Thumbnail_Create
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 50.89 ▲11.30 |
Dashboard /wp-admin | 3.63 ▲0.28 | 48.08 ▼11.39 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 50.06 ▲5.13 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 90.54 ▼16.29 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 35.67 ▲1.90 |
サムネ取得 /wp-admin/options-general.php?page=thumbnail_create_menu | 3.46 | 35.60 |
Server storage [IO: ▲2.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 600 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Thumbnail_Create: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.68 ▼1.06 | 1.68 ▼0.35 | 37.76 ▼6.38 |
Dashboard /wp-admin | 2,210 ▲25 | 5.86 ▲0.00 | 109.73 ▼5.55 | 42.41 ▼1.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.12 | 40.12 ▲2.14 | 39.27 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 23.36 ▲5.35 | 679.54 ▲1.92 | 58.70 ▲3.84 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.15 ▼0.05 | 96.11 ▼2.45 | 44.42 ▼0.86 |
サムネ取得 /wp-admin/options-general.php?page=thumbnail_create_menu | 785 | 2.05 | 26.66 | 55.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'newgeneratethum' not found or invalid function name
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 328× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\BrowserKit\\Response' not found in wp-content/plugins/thumbnail-create/trunk/vendor/symfony/browser-kit/Tests/ClientTest.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/thumbnail-create/vendor/symfony/css-selector/Parser/Handler/CommentHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/thumbnail-create/trunk/vendor/symfony/css-selector/Tests/Node/ElementNodeTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/thumbnail-create/vendor/symfony/browser-kit/Tests/RequestTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/thumbnail-create/trunk/vendor/guzzlehttp/promises/src/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DomCrawler\\Tests\\Field\\FormFieldTestCase' not found in wp-content/plugins/thumbnail-create/vendor/symfony/dom-crawler/Tests/Field/FormFieldTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DomCrawler\\Link' not found in wp-content/plugins/thumbnail-create/vendor/symfony/dom-crawler/Form.php:22
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/thumbnail-create/trunk/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/thumbnail-create/vendor/guzzlehttp/psr7/tests/UriTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/thumbnail-create/vendor/symfony/css-selector/Tests/Node/AttributeNodeTest.php:17
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Thumbnail_create)
thumbnail-create/thumbnail_create.php 92% from 13 tests
The primary PHP file in "Thumbnail_Create" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("thumbnail-create.php" instead of "thumbnail_create.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected28,801 lines of code in 277 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 234 | 4,563 | 9,253 | 24,283 |
Markdown | 16 | 854 | 0 | 3,035 |
JSON | 11 | 0 | 0 | 850 |
HTML | 3 | 0 | 0 | 364 |
XML | 6 | 10 | 0 | 123 |
YAML | 4 | 21 | 0 | 77 |
reStructuredText | 1 | 43 | 34 | 38 |
make | 2 | 11 | 0 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 38 | |
Traits | 4 | |
Classes | 404 | |
▷ Abstract classes | 14 | 3.47% |
▷ Concrete classes | 390 | 96.53% |
▷ Final classes | 10 | 2.56% |
Methods | 3,876 | |
▷ Static methods | 194 | 5.01% |
▷ Public methods | 3,502 | 90.35% |
▷ Protected methods | 108 | 2.79% |
▷ Private methods | 266 | 6.86% |
Functions | 812 | |
▷ Named functions | 182 | 22.41% |
▷ Anonymous functions | 630 | 77.59% |
Constants | 108 | |
▷ Global constants | 8 | 7.41% |
▷ Class constants | 100 | 92.59% |
▷ Public constants | 100 | 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
PNG images were not found in this plugin