Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/show-post-in-lightbox/spbc_showPostsWidget.php+3
Undefined index: popup
Server metrics [RAM: ▼1.96MB] [CPU: ▼60.86ms] Passed 4 tests
An overview of server-side resources used by Show Post In lightbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.64 ▼41.44 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.78 ▼45.29 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 4.94 ▼52.88 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.56 ▼103.84 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.43 ▼30.39 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_spbc_showpostswidget |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Show Post In lightbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 13.50 ▼0.87 | 10.34 ▲8.53 | 43.13 ▼1.69 |
Dashboard /wp-admin | 2,192 ▲12 | 5.67 ▲0.01 | 98.29 ▲3.79 | 52.23 ▲8.12 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.04 | 38.11 ▼0.32 | 36.12 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,549 ▲13 | 18.38 ▼4.93 | 654.29 ▼16.11 | 59.59 ▲9.26 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.27 ▼0.03 | 95.30 ▼11.70 | 43.43 ▼2.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/show-post-in-lightbox/spbc_showPostsWidget.php+3
Undefined index: popup
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_spbc_showpostswidget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/show-post-in-lightbox/spbc_showPostsWidget.php:17
- > PHP Notice
Undefined index: popup in wp-content/plugins/show-post-in-lightbox/spbc_showPostsWidget.php on line 3
- > PHP Notice
Undefined index: popup in wp-content/plugins/show-post-in-lightbox/spbc_showPostsWidget.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/show-post-in-lightbox/spbc_showPostsWidget.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: post in lightbox plugin, posts, popup, lightbox, post in lightbox
show-post-in-lightbox/show_posts.php 85% from 13 tests
The main file in "Show Post In lightbox" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("show-post-in-lightbox.php" instead of "show_posts.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 359 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin378 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 18 | 297 |
JavaScript | 1 | 9 | 2 | 45 |
CSS | 1 | 6 | 4 | 36 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
shortcode.png | 36.04KB | 23.54KB | ▼ 34.70% |
default-display-on-frontend.png | 41.39KB | 22.40KB | ▼ 45.88% |
popup.png | 109.52KB | 44.22KB | ▼ 59.63% |
ostlightbox/css/tb-close.png | 1.12KB | 0.33KB | ▼ 70.10% |