Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.61ms] Passed 4 tests
This is a short check of server-side resources used by Ratio Thumbnails Size
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.24 ▼2.33 |
Dashboard /wp-admin | 3.36 ▲0.05 | 43.87 ▼1.55 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.57 ▼4.90 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.56 ▼7.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.98 ▼3.77 |
Ratio Thumbnails Size /wp-admin/options-general.php?page=ratiothumbnailssize | 3.25 | 30.48 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Ratio Thumbnails Size
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.33 ▼0.28 | 1.75 ▲0.19 | 43.99 ▲7.20 |
Dashboard /wp-admin | 2,202 ▲28 | 5.60 ▼0.08 | 92.61 ▼1.72 | 44.45 ▲3.46 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.00 | 39.41 ▼4.30 | 35.45 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.62 ▲0.57 | 689.47 ▲20.74 | 46.43 ▼12.25 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▲0.01 | 97.15 ▼0.72 | 40.63 ▼3.67 |
Ratio Thumbnails Size /wp-admin/options-general.php?page=ratiothumbnailssize | 935 | 2.01 | 23.33 | 28.83 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ratio-thumbnails-size/lib/class-ratiothumbnailssizeadmin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ratio-thumbnails-size/lib/class-ratiothumbnailssize.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ratio-thumbnails-size/lib/class-ratiothumbnailssize.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: thumbnails, media, ratio
ratio-thumbnails-size/ratiothumbnailssize.php 92% from 13 tests
"Ratio Thumbnails Size" version 1.07's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("ratio-thumbnails-size.php" instead of "ratiothumbnailssize.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected309 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 59 | 123 | 309 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 5.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 25.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin