Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼35.84ms] Passed 4 tests
Analyzing server-side resources used by Square Thumbnails
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.45 ▼3.55 |
Dashboard /wp-admin | 3.09 ▼0.26 | 25.10 ▼42.48 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 24.02 ▼22.12 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.80 | 23.86 ▼69.99 |
Media Library /wp-admin/upload.php | 3.09 ▼0.14 | 25.90 ▼8.76 |
Square Thumbnails /wp-admin/upload.php?page=square-thumbnails-admin-page | 3.09 | 25.46 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Square Thumbnails
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 13.60 ▼1.13 | 7.92 ▲6.13 | 43.75 ▼1.48 |
Dashboard /wp-admin | 2,222 ▲45 | 5.00 ▼0.53 | 92.69 ▼9.81 | 40.01 ▼3.60 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.51 ▲0.50 | 35.56 ▼0.15 | 31.42 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.60 ▲0.50 | 663.94 ▼23.99 | 36.19 ▼15.31 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.44 ▲0.23 | 98.71 ▼17.69 | 48.27 ▼1.30 |
Square Thumbnails /wp-admin/upload.php?page=square-thumbnails-admin-page | 1,050 | 2.54 | 39.45 | 28.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/upload.php?page=square-thumbnails-admin-page
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/square-thumbnails/public/partials/square-thumbnails-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/square-thumbnails/admin/partials/square-thumbnails-admin-display.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
8 plugin tags: creating all sizes, woocommerce, thumbnails, resize, square thumbnails...
square-thumbnails/square-thumbnails.php Passed 13 tests
"Square Thumbnails" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
Making Square Thumbnails without cropping the image.
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 plugin537 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 186 | 567 | 511 |
JavaScript | 2 | 8 | 54 | 26 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of 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.21 |
Average class complexity | 7.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 27 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 30.77% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin