Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.94ms] Passed 4 tests
This is a short check of server-side resources used by hiWeb Lightbox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.03 ▼0.37 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.24 ▼3.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.47 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.31 ▼19.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.40 ▲0.14 |
Server storage [IO: ▲2.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
hiWeb Lightbox: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲187 | 14.02 ▼0.35 | 5.83 ▲3.75 | 39.87 ▼4.36 |
Dashboard /wp-admin | 2,221 ▲18 | 5.88 ▼0.00 | 110.22 ▲2.82 | 42.14 ▲2.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.03 | 42.41 ▲4.52 | 36.17 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.11 ▼0.09 | 612.23 ▼76.52 | 56.87 ▲7.61 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.03 | 97.24 ▼17.69 | 45.23 ▼0.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hiweb-lightbox/include/templates/pswp.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-lightbox/include/hooks.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-lightbox/include/hooks.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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
Attributes that require attention:
- Donate link: Invalid url: ""
- Tags: You are using too many tags: 23 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #2 (Just Add image on WYSIWYG editor for hiWeb Lightbox), #3 (Set up link to media file (important!)), #4 (Add gallery on WYSIWYG editor for hiWeb Lightbox), #5 (Its all...easy and simple!)
hiweb-lightbox/hiweb-lightbox.php Passed 13 tests
"hiWeb Lightbox" version 1.0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
26 characters long description:
Auto-open all in Lightbox
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,712 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 952 | 408 | 3,345 |
PHP | 14 | 209 | 452 | 886 |
CSS | 2 | 94 | 87 | 480 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 29.62 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 66 | 92.96% |
▷ Protected methods | 4 | 5.63% |
▷ Private methods | 1 | 1.41% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 2.28MB with 1.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/photoswipe/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |
screenshot-1.png | 606.43KB | 204.23KB | ▼ 66.32% |
screenshot-2.png | 376.82KB | 129.97KB | ▼ 65.51% |
screenshot-5.png | 605.79KB | 142.34KB | ▼ 76.50% |
screenshot-4.png | 520.44KB | 141.50KB | ▼ 72.81% |