Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.00ms] Passed 4 tests
Analyzing server-side resources used by Loader Plus Lightbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 45.35 ▲2.95 |
Dashboard /wp-admin | 3.35 ▼0.00 | 49.52 ▼15.71 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.25 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.83 ▼11.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.68 ▼0.39 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Loader Plus Lightbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲151 | 13.51 ▼0.67 | 9.25 ▲7.59 | 38.54 ▼2.64 |
Dashboard /wp-admin | 2,198 ▲18 | 5.55 ▼0.10 | 87.89 ▼7.43 | 76.44 ▲29.82 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.99 ▲0.02 | 37.34 ▼3.31 | 33.72 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.42 ▲0.31 | 743.12 ▲72.08 | 59.01 ▲9.55 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.15 ▼0.02 | 109.56 ▼7.61 | 82.50 ▲33.37 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/loader-plus-lightbox/lpl.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 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
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #0, #0, #0, #0, #0, #0, #0 in loader-plus-lightbox/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== loader-plus-lightbox ===
) - Tags: There are too many tags (12 tag instead of maximum 10)
loader-plus-lightbox/lpl.php 92% from 13 tests
The entry point to "Loader Plus Lightbox" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("loader-plus-lightbox.php" instead of "lpl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin248 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 92 | 26 | 201 |
JavaScript | 2 | 9 | 8 | 28 |
CSS | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 5 | |
▷ Named functions | 5 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot 05.png | 7.87KB | 2.18KB | ▼ 72.29% |
screenshot 01.png | 85.89KB | 21.03KB | ▼ 75.52% |
screenshot 06.png | 15.76KB | 6.76KB | ▼ 57.11% |
screenshot 02.png | 3.11KB | 1.23KB | ▼ 60.57% |
screenshot 03.png | 5.70KB | 1.14KB | ▼ 79.94% |