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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.94ms] Passed 4 tests
Server-side resources used by Disable Generate Thumbnails
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.35 ▼7.34 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.44 ▼11.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 41.98 ▼4.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.49 ▼5.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.00 ▲4.58 |
Disable Generate Thumbnails /wp-admin/options-general.php?page=disablegeneratethumbnails | 3.22 | 32.93 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
disablegeneratethumbnails_threshold |
disablegeneratethumbnails |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
disablegeneratethumbnails_exif_rotate |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Disable Generate Thumbnails
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 14.76 ▲0.49 | 2.09 ▲0.54 | 45.83 ▲6.29 |
Dashboard /wp-admin | 2,199 ▲18 | 5.56 ▼0.06 | 92.68 ▼11.59 | 41.63 ▲4.10 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.01 | 33.03 ▼3.23 | 34.80 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.60 ▼0.05 | 676.18 ▼31.57 | 52.21 ▼4.34 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.19 ▲0.03 | 100.60 ▲5.43 | 47.05 ▲4.38 |
Disable Generate Thumbnails /wp-admin/options-general.php?page=disablegeneratethumbnails | 1,009 | 6.94 | 176.76 | 31.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-generate-thumbnails/lib/class-disablegeneratethumbnailsadmin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-generate-thumbnails/lib/class-disablegeneratethumbnails.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-generate-thumbnails/lib/class-disablegeneratethumbnails.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: media, disable, thumbnails
disable-generate-thumbnails/disablegeneratethumbnails.php 92% from 13 tests
"Disable Generate Thumbnails" version 2.12'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: Name the main plugin file the same as the plugin slug ("disable-generate-thumbnails.php" instead of "disablegeneratethumbnails.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
Success! There were no dangerous files found in this plugin408 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 54 | 140 | 241 |
JavaScript | 3 | 17 | 3 | 117 |
CSS | 2 | 1 | 0 | 28 |
JSON | 1 | 0 | 0 | 20 |
Sass | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin