Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/website-thumbshots/inc/_common.funcs.php+170
Undefined variable: chmod
Server metrics [RAM: ▼1.18MB] [CPU: ▼43.14ms] Passed 4 tests
This is a short check of server-side resources used by Thumbshots plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 13.32 ▼31.31 |
Dashboard /wp-admin | 2.83 ▼0.47 | 15.68 ▼32.67 |
Posts /wp-admin/edit.php | 2.83 ▼0.52 | 17.37 ▼29.08 |
Add New Post /wp-admin/post-new.php | 2.83 ▼3.05 | 14.48 ▼79.49 |
Media Library /wp-admin/upload.php | 2.83 ▼0.40 | 15.96 ▼14.52 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/website-thumbshots/" and "wp-content/uploads/"
- (new file) wp-content/thumbs_cache/index.html
Filesystem: 14 new files
Database: no new tables, 28 new options
New WordPress options |
---|
widget_theysaidso_widget |
thumb_debug |
thumb_link_to_exit_page |
thumb_original_image_w |
thumb_allow_reloads |
thumb_queued_cache_days |
thumb_service_images_enabled |
thumb_preview_height |
thumb_access_key |
thumb_height |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Thumbshots plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲198 | 14.10 ▼0.52 | 6.34 ▲4.38 | 37.73 ▼9.36 |
Dashboard /wp-admin | 2,228 ▲40 | 4.95 ▼0.94 | 98.26 ▼19.61 | 85.06 ▲39.25 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.00 ▼0.05 | 37.61 ▼1.79 | 33.19 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,684 ▲164 | 22.26 ▼0.90 | 646.27 ▲9.21 | 42.67 ▼13.54 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.13 ▼0.08 | 98.43 ▲4.21 | 79.69 ▲36.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/website-thumbshots/inc/_plugin-helper.class.php+91
unserialize(): Error at offset 0 of 1 bytes
- Zombie WordPress options detected upon uninstall: 28 options
- thumb_debug_ip
- theysaidso_admin_options
- thumb_link
- thumb_queued_cache_days
- thumb_debug
- thumb_link_noindex
- thumb_link_nofollow
- db_upgraded
- widget_recent-comments
- thumb_service_images_enabled
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/website-thumbshots/inc/_thumbshots.class.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function content_url() in wp-content/plugins/website-thumbshots/thumbshots.plugin.php:59
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/website-thumbshots/thumbshots.plugin.php on line 58
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (The plugin interface), #2 (Post editor button and inserted shortcode), #3 (An example thumbshot with reload button, and an optional mouseover header preview)
website-thumbshots/thumbshots.plugin.php 92% from 13 tests
The main PHP script in "Thumbshots plugin" version 1.4.6 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("website-thumbshots.php" instead of "thumbshots.plugin.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
Success! There were no dangerous files found in this plugin1,981 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 410 | 223 | 1,916 |
JavaScript | 1 | 8 | 17 | 59 |
CSS | 1 | 2 | 12 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 100.33 |
▷ Minimum class complexity | 68.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 6.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
menu-icon.png | 1.65KB | 0.74KB | ▼ 55.19% |
plugin-logo.png | 19.28KB | 10.03KB | ▼ 47.95% |