Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼148.09ms] Passed 4 tests
A check of server-side resources used by Thumbnails for Backend
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 37.05 ▲11.41 |
Dashboard /wp-admin | 3.10 ▲0.04 | 46.53 ▲0.38 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 38.30 ▼15.65 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 97.19 ▼577.44 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 36.19 ▲0.37 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Thumbnails for Backend: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲102 | 16.34 ▲0.79 | 10.56 ▼0.73 | 53.47 ▼2.22 |
Dashboard /wp-admin | 2,975 ▲41 | 5.95 ▼0.21 | 145.82 ▼9.42 | 120.01 ▲6.29 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 71.45 ▼10.18 | 99.07 ▼4.59 |
Add New Post /wp-admin/post-new.php | 1,686 ▼2,040 | 18.77 ▲3.55 | 389.53 ▼90.12 | 119.74 ▼7.59 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▼0.01 | 158.90 ▼4.85 | 128.42 ▼4.84 |
Thumbnails for Backend /wp-admin/thumbnailsforbackend.php | 26 | 0.90 | 0.06 | 11.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/thumbnailsforbackend/thumbnailsforbackend.php:328
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/thumbnailsforbackend.php
- > Network (severe)
wp-admin/thumbnailsforbackend.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Preview), #2 (Setting Page)
thumbnailsforbackend/thumbnailsforbackend.php Passed 13 tests
Analyzing the main PHP file in "Thumbnails for Backend" version 0.0.5
80 characters long description:
Simple plugin to add thumbnails to your Posts list within the WordPress backend.
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 plugin182 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 112 | 40 | 182 |
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.34 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 48.91KB | 21.73KB | ▼ 55.57% |
screenshot-2.png | 15.75KB | 6.23KB | ▼ 60.45% |