Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.27ms] Passed 4 tests
A check of server-side resources used by iThoughts Lightbox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.70 ▼9.64 |
Dashboard /wp-admin | 3.40 ▲0.10 | 52.46 ▲1.76 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 56.55 ▲5.79 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.09 | 89.58 ▼5.49 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 39.26 ▲4.30 |
iThoughts Lightbox /wp-admin/options-general.php?page=ithoughts_lightbox | 3.29 | 36.63 |
Server storage [IO: ▲7.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iThoughts Lightbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.27 ▼0.06 | 1.87 ▼0.38 | 41.86 ▼2.61 |
Dashboard /wp-admin | 2,214 ▲47 | 5.64 ▼0.02 | 100.06 ▼4.75 | 46.65 ▲2.93 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 2.17 ▲0.15 | 37.86 ▼0.71 | 35.07 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.56 ▲0.46 | 654.76 ▼3.50 | 50.17 ▼1.57 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.29 ▲0.08 | 107.67 ▼1.53 | 46.54 ▲0.78 |
iThoughts Lightbox /wp-admin/options-general.php?page=ithoughts_lightbox | 1,016 | 2.50 | 44.53 | 50.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ithoughts_lightbox_interface' not found in wp-content/plugins/ithoughts-lightbox/class/ithoughts_lightbox-admin.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ithoughts-lightbox/class/ithoughts_lightbox.class.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Example base layout used for demonstration), #2 (A lightbox view with dark theme and loopbox enabled (you can go from first to last going backward and from last to first going forward)), #3 (A lightbox view on a small screen), #4 (The same view with ImageZoom active), #5 (Display on 320x480px screen), #6 (TinyMCE lightbox configuration form. Orange shadowed won't be added to lightbox, blue will, and no shadowed will follow the default option), #7 (The new TinyMCE button)
ithoughts-lightbox/ithoughts_lightbox.php 85% from 13 tests
"iThoughts Lightbox" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ithoughts-lightbox.php" instead of "ithoughts_lightbox.php")
- Text Domain: Please use dashes and lowercase characters for text domains
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
No dangerous file extensions were detected2,188 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 42 | 23 | 865 |
CSS | 6 | 42 | 3 | 622 |
PHP | 6 | 69 | 65 | 537 |
SVG | 2 | 1 | 2 | 84 |
JSON | 1 | 0 | 0 | 51 |
HTML | 1 | 0 | 0 | 28 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 10 | 32.26% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.45% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 3.72MB with 2.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 234.55KB | 62.60KB | ▼ 73.31% |
screenshot-1.png | 846.35KB | 245.10KB | ▼ 71.04% |
screenshot-3.png | 759.87KB | 207.89KB | ▼ 72.64% |
screenshot-7.png | 39.17KB | 14.16KB | ▼ 63.86% |
screenshot-6.png | 250.69KB | 56.77KB | ▼ 77.36% |