Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼3.35ms] Passed 4 tests
A check of server-side resources used by LightBox Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 36.77 ▼2.97 |
Dashboard /wp-admin | 3.60 ▲0.29 | 50.15 ▼0.76 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 53.21 ▲3.70 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 82.57 ▼12.75 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.13 ▲3.08 |
Lightbox block /wp-admin/admin.php?page=lightbox-block | 3.42 | 36.36 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 9 new options
New WordPress options |
---|
unique_id |
widget_theysaidso_widget |
-redirect |
can_compress_scripts |
db_upgraded |
fs_accounts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for LightBox Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,645 ▼1,142 | 12.32 ▼1.81 | 1.57 ▼0.27 | 35.09 ▼12.02 |
Dashboard /wp-admin | 2,190 ▲13 | 5.11 ▼0.56 | 114.96 ▲27.11 | 46.17 ▲2.45 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.57 ▲0.57 | 66.03 ▲26.07 | 34.07 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,708 ▲179 | 21.54 ▼1.47 | 723.08 ▲98.47 | 42.00 ▼14.20 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.73 ▲0.50 | 113.97 ▲12.63 | 40.97 ▼5.37 |
Lightbox block /wp-admin/admin.php?page=lightbox-block | 937 | 2.65 | 50.72 | 37.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- fs_accounts
- unique_id
- -redirect
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=lightbox-block
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/lightbox-block/bplugins_sdk/inc/Base/FSActivate.php+204
Undefined index: thread
- > GET request to /wp-admin/admin.php?page=lightbox-block
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/lightbox-block/bplugins_sdk/inc/Base/FSActivate.php+223
Undefined index: type
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'FS_LITE' not found in wp-content/plugins/lightbox-block/bplugins_sdk/inc/Base/FSActivate.php:3
- > PHP Warning
Use of undefined constant LBB_PLUGIN_VERSION - assumed 'LBB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/lightbox-block/dist/editor.asset.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightbox-block/inc/block.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Requires at least: Invalid version format
lightbox-block/index.php 85% from 13 tests
The main file in "LightBox Block" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lightbox-block.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,538 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 167 | 48 | 904 |
JSON | 4 | 0 | 0 | 327 |
PO File | 2 | 126 | 267 | 283 |
SVG | 4 | 0 | 0 | 12 |
CSS | 6 | 0 | 7 | 6 |
JavaScript | 6 | 0 | 4 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 17.43 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 3 | 5.00% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 10 | |
▷ Global constants | 10 | 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
No PNG images were found in this plugin