Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.99ms] Passed 4 tests
Server-side resources used by Lightbox With Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 51.27 ▲8.84 |
Dashboard /wp-admin | 3.36 ▲0.02 | 51.68 ▼5.41 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.75 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.96 ▼16.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 40.83 ▲3.74 |
Lightbox With Ads /wp-admin/options-general.php?page=lightbox_with_ads | 3.36 | 35.49 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 25 new options
New WordPress options |
---|
lightbox_with_ads_option_plugin_type |
lightbox_with_ads_option_license_type |
lightbox_with_ads_option_logo_width |
lightbox_with_ads_option_plugin_trial_end_date |
lightbox_with_ads_option_background_color |
lightbox_with_ads_option_close_button_font_size |
db_upgraded |
lightbox_with_ads_option_logo_height |
lightbox_with_ads_option_license_status |
lightbox_with_ads_option_current_img_index_color |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Lightbox With Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,025 ▲264 | 14.83 ▲0.46 | 6.54 ▲4.98 | 42.57 ▲5.12 |
Dashboard /wp-admin | 2,337 ▲156 | 6.19 ▲0.46 | 103.51 ▲4.19 | 36.97 ▼3.62 |
Posts /wp-admin/edit.php | 2,268 ▲168 | 3.35 ▲1.35 | 50.20 ▲11.84 | 29.92 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.27 ▼0.03 | 665.62 ▼8.26 | 37.16 ▼13.74 |
Media Library /wp-admin/upload.php | 1,411 ▲17 | 4.22 ▼0.01 | 84.85 ▼8.62 | 45.92 ▲3.70 |
Lightbox With Ads /wp-admin/options-general.php?page=lightbox_with_ads | 1,344 | 3.01 | 41.40 | 90.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 12 options
- lightbox_with_ads_option_license_status
- lightbox_with_ads_option_license_last_checked
- lightbox_with_ads_option_license_type
- db_upgraded
- lightbox_with_ads_option_plugin_trial_end_date
- lightbox_with_ads_option_plugin_type
- theysaidso_admin_options
- widget_theysaidso_widget
- lightbox_with_ads_option_license_expire_date
- widget_recent-posts
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=lightbox_with_ads
- > Notice in wp-content/plugins/lightbox-with-ads/php/admin_panel_settings.php+69
Undefined variable: license_error
- > GET request to /wp-admin/options-general.php?page=lightbox_with_ads
- > Notice in wp-content/plugins/lightbox-with-ads/php/admin_panel_settings.php+76
Undefined variable: license_success
SRP 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lightbox-with-ads/php/gallery_template.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lightbox-with-ads/php/admin_panel_settings.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=lightbox_with_ads
- > Network (severe)
wp-content/plugins/lightbox-with-ads/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% 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: ad, ads, lightbox, images, gallery
lightbox-with-ads/lightbox_with_ads.php 77% from 13 tests
Analyzing the main PHP file in "Lightbox With Ads" version 1.0
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 249 characters long)
- Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "7")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lightbox-with-ads.php" instead of "lightbox_with_ads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,118 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 80 | 34 | 675 |
CSS | 2 | 17 | 2 | 262 |
JavaScript | 3 | 36 | 13 | 181 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin