10% thickbox

Code Review | ThickBox

WordPress plugin ThickBox scored10%from 54 tests.

About plugin

  • Plugin page: thickbox
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2008
  • Latest release: Jun 21, 2014
  • Number of updates: 27
  • Update frequency: every 86.0 days
  • Top authors: chschenk (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /96,625 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.205.05 ▼33.91
Dashboard /wp-admin2.29 ▼1.026.70 ▼44.19
Posts /wp-admin/edit.php2.29 ▼1.076.20 ▼41.21
Add New Post /wp-admin/post-new.php2.29 ▼3.605.60 ▼83.12
Media Library /wp-admin/upload.php2.29 ▼0.946.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.85 ▼0.549.26 ▲7.3439.29 ▼6.36
Dashboard /wp-admin2,210 ▲255.86 ▲0.0295.64 ▼7.6337.00 ▼6.87
Posts /wp-admin/edit.php2,096 ▲42.01 ▼0.0534.03 ▼8.2834.42 ▼3.22
Add New Post /wp-admin/post-new.php1,538 ▲523.15 ▼0.06647.10 ▼43.9053.21 ▼4.29
Media Library /wp-admin/upload.php1,395 ▲104.20 ▲0.0196.93 ▼2.5742.16 ▼5.35
ThickBox /wp-admin/thickbox.php260.440.0713.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.)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript61611121,254
PHP163115350
PO File283104325
CSS24118232
make18714

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 code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
thickbox/images/macFFBgHack.png0.20KB0.09KB▼ 53.14%
screenshot-1.png58.41KB22.13KB▼ 62.11%
screenshot-2.png63.83KB22.48KB▼ 64.79%