Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.82ms] Passed 4 tests
Server-side resources used by Mediabox CK - Responsive Lightbox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 51.58 ▲7.24 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.38 ▼4.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.44 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.74 ▼7.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.68 ▲1.35 |
Mediabox CK /wp-admin/options-general.php?page=mediabox-ck | 3.28 | 39.54 |
Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
mediaboxck_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Mediabox CK - Responsive Lightbox: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲239 | 13.75 ▼0.61 | 14.27 ▲12.39 | 43.51 ▼0.85 |
Dashboard /wp-admin | 2,213 ▲24 | 5.88 ▲0.93 | 99.41 ▼8.49 | 39.96 ▼4.37 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.01 | 34.73 ▲0.30 | 33.89 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.29 ▲5.11 | 643.74 ▲20.06 | 46.93 ▼11.44 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▲0.00 | 94.95 ▼3.60 | 40.72 ▼3.94 |
Mediabox CK /wp-admin/options-general.php?page=mediabox-ck | 1,383 | 3.34 | 55.22 | 84.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- mediaboxck_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant MEDIABOXCK_MEDIA_URL - assumed 'MEDIABOXCK_MEDIA_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediabox-ck/interfaces/options.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mediabox-ck/interfaces/options-mobile.php:2
- > PHP Warning
Use of undefined constant MEDIABOXCK_MEDIA_URL - assumed 'MEDIABOXCK_MEDIA_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediabox-ck/interfaces/options.php on line 4
- > PHP Warning
Use of undefined constant MEDIABOXCK_MEDIA_URL - assumed 'MEDIABOXCK_MEDIA_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediabox-ck/interfaces/options.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mediabox-ck/interfaces/options-styles.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mediabox-ck/interfaces/options-effects.php:2
- > PHP Warning
Use of undefined constant MEDIABOXCK_WEBSITE - assumed 'MEDIABOXCK_WEBSITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/mediabox-ck/interfaces/options.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mediabox-ck/interfaces/options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mediabox-ck/interfaces/options-general.php:1
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=mediabox-ck
- > Network (severe)
wp-content/plugins/mediabox-ck/assets/jscolor/jscolor.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: mediabox, media, popup, videos, responsive...
mediabox-ck/mediabox-ck.php 92% from 13 tests
Analyzing the main PHP file in "Mediabox CK - Responsive Lightbox" version 1.1.3
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
These items require your attention
- Do not include executable or dangerous files in your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/mediabox-ck/assets/jscolor/Demos of JSColor.URL
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 306 | 364 | 2,025 |
CSS | 3 | 205 | 117 | 1,423 |
PHP | 9 | 218 | 681 | 1,181 |
PO File | 1 | 61 | 78 | 129 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 43.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 13 | 21.31% |
▷ Public methods | 52 | 85.25% |
▷ Protected methods | 2 | 3.28% |
▷ Private methods | 7 | 11.48% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 14 | 60.87% |
▷ Class constants | 9 | 39.13% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/80.png | 0.14KB | 0.09KB | ▼ 33.56% |
images/logo_mediaboxck_64.png | 3.84KB | 2.76KB | ▼ 28.22% |
assets/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
assets/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |