Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.10ms] Passed 4 tests
Server-side resources used by Bulk Generate Thumbnails
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 36.33 ▼1.52 |
Dashboard /wp-admin | 3.47 ▲0.17 | 43.77 ▼6.13 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 49.15 ▲2.55 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 78.45 ▼7.24 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 34.36 ▼1.49 |
Generate Thumbnails /wp-admin/upload.php?page=bulkgeneratethumbnails | 3.37 | 34.89 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Bulk Generate Thumbnails
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▼0.02 | 1.60 ▼0.30 | 44.93 ▲0.49 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.03 | 90.15 ▼9.55 | 37.84 ▼5.33 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.06 | 41.06 ▲3.79 | 35.62 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,529 ▲123 | 23.61 ▲5.71 | 681.87 ▲39.06 | 54.39 ▲2.32 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.17 ▼0.20 | 96.95 ▼0.66 | 42.34 ▲0.38 |
Generate Thumbnails /wp-admin/upload.php?page=bulkgeneratethumbnails | 1,204 | 2.00 | 22.94 | 27.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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 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
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-screen.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-generate-thumbnails/lib/class-tt-bulkgeneratethumbnails-list-table.php on line 26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-generate-thumbnails/lib/class-tt-bulkgeneratethumbnails-list-table.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/bulk-generate-thumbnails/lib/class-bulkgeneratethumbnails.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/bulk-generate-thumbnails/lib/class-bulkgeneratethumbnails.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-generate-thumbnails/lib/class-bulkgeneratethumbnailsadmin.php:36
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-generate-thumbnails/lib/class-tt-bulkgeneratethumbnails-list-table.php on line 26
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: media, thumbnails
bulk-generate-thumbnails/bulkgeneratethumbnails.php 92% from 13 tests
This is the main PHP file of "Bulk Generate Thumbnails" version 2.04, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("bulk-generate-thumbnails.php" instead of "bulkgeneratethumbnails.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,127 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 148 | 369 | 922 |
JavaScript | 2 | 23 | 42 | 205 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 36.67 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 67.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 32.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin