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.09MB] [CPU: ▼5.48ms] Passed 4 tests
An overview of server-side resources used by Term Thumbnails
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.01 ▼8.26 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.90 ▼4.09 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.93 ▲2.65 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 95.12 ▼12.22 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 37.45 ▲7.11 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Term Thumbnails
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.25 ▼1.14 | 4.45 ▲1.87 | 46.17 ▲2.95 |
Dashboard /wp-admin | 2,209 ▲26 | 4.86 ▼0.10 | 110.81 ▲2.60 | 41.11 ▲1.41 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.01 | 40.66 ▲4.84 | 34.18 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.19 ▲0.08 | 720.50 ▲81.54 | 57.02 ▲1.94 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.30 ▲0.09 | 99.18 ▲2.64 | 46.74 ▲3.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/term-thumbnails/classes/class.term-thumbnails-admin.php
- > /wp-content/plugins/term-thumbnails/term-thumbnails.php
- > /wp-content/plugins/term-thumbnails/inc/template-tags.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Term listing), #2 (Term listing with image), #3 (Term edit page), #4 (Term edit page with image)
term-thumbnails/term-thumbnails.php Passed 13 tests
The entry point to "Term Thumbnails" version 1.0.2 is a PHP file that has certain tags in its header comment area
25 characters long description:
Post Thumbnails for Terms
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin351 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 149 | 182 | 199 |
JavaScript | 1 | 41 | 2 | 82 |
Markdown | 1 | 25 | 0 | 41 |
PO File | 1 | 4 | 12 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 40.36KB | 16.54KB | ▼ 59.03% |
screenshot-4.png | 35.97KB | 15.64KB | ▼ 56.52% |
screenshot-3.png | 28.84KB | 12.19KB | ▼ 57.73% |
screenshot-1.png | 31.14KB | 12.92KB | ▼ 58.51% |