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
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/thickbox/thickbox.php+138
Use of undefined constant thickbox_init - assumed 'thickbox_init' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.72MB] [CPU: ▼50.61ms] Passed 4 tests
A check of server-side resources used by ThickBox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.20 | 5.05 ▼33.91 |
Dashboard /wp-admin | 2.29 ▼1.02 | 6.70 ▼44.19 |
Posts /wp-admin/edit.php | 2.29 ▼1.07 | 6.20 ▼41.21 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.60 | 5.60 ▼83.12 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 6.32 ▼27.22 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 15 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
thickbox_expert_mode |
thickbox_use_smoothbox |
thickbox_include_jquery |
widget_theysaidso_widget |
thickbox_include_mootools |
thickbox_use_wordpress |
thickbox_add_class |
thickbox_include_thickbox_js |
... |
Browser metrics Passed 4 tests
ThickBox: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.85 ▼0.54 | 9.26 ▲7.34 | 39.29 ▼6.36 |
Dashboard /wp-admin | 2,210 ▲25 | 5.86 ▲0.02 | 95.64 ▼7.63 | 37.00 ▼6.87 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.01 ▼0.05 | 34.03 ▼8.28 | 34.42 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.15 ▼0.06 | 647.10 ▼43.90 | 53.21 ▼4.29 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.20 ▲0.01 | 96.93 ▼2.57 | 42.16 ▼5.35 |
ThickBox /wp-admin/thickbox.php | 26 | 0.44 | 0.07 | 13.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/thickbox/thickbox.php+138
Use of undefined constant thickbox_init - assumed 'thickbox_init' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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/thickbox.php
- > Network (severe)
wp-admin/thickbox.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
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Some pictures in a gallery.), #2 (If you click on a picture you'll see the larger image.)
thickbox/thickbox.php Passed 13 tests
The main PHP script in "ThickBox" version 1.6.1 is automatically included on every request by WordPress
41 characters long description:
Embed ThickBox into your posts and pages.
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
No dangerous file extensions were detected2,175 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 161 | 112 | 1,254 |
PHP | 1 | 63 | 115 | 350 |
PO File | 2 | 83 | 104 | 325 |
CSS | 2 | 41 | 18 | 232 |
make | 1 | 8 | 7 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
thickbox/images/macFFBgHack.png | 0.20KB | 0.09KB | ▼ 53.14% |
screenshot-1.png | 58.41KB | 22.13KB | ▼ 62.11% |
screenshot-2.png | 63.83KB | 22.48KB | ▼ 64.79% |