Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.69ms] Passed 4 tests
Analyzing server-side resources used by PWP Lytebox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.14 ▼1.88 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.69 ▼5.81 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.70 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.91 ▼4.29 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 31.86 ▼2.76 |
PWP-Lytebox /wp-admin/options-general.php?page=pwpl | 3.25 | 30.67 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
pwpl_resizespeed |
widget_recent-comments |
widget_theysaidso_widget |
pwpl_colortheme |
db_upgraded |
widget_recent-posts |
pwpl_autogroup |
Browser metrics Passed 4 tests
An overview of browser requirements for PWP Lytebox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲200 | 14.24 ▼0.52 | 19.52 ▲17.80 | 43.25 ▲0.01 |
Dashboard /wp-admin | 2,207 ▲22 | 5.80 ▲0.77 | 94.73 ▼20.90 | 38.88 ▼8.59 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.02 | 39.49 ▲2.70 | 34.53 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.38 ▲5.17 | 597.86 ▼1.11 | 53.69 ▲1.76 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.02 | 93.53 ▼5.99 | 42.87 ▼1.12 |
PWP-Lytebox /wp-admin/options-general.php?page=pwpl | 860 | 2.03 | 25.17 | 43.34 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- pwpl_autogroup
- pwpl_resizespeed
- can_compress_scripts
- pwpl_colortheme
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: lytebox, modal window images, light box, popup images, lightbox
pwp-lytebox/index.php 92% from 13 tests
Analyzing the main PHP file in "PWP Lytebox" version 1.3.2
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("pwp-lytebox.php" instead of "index.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
No dangerous file extensions were detected2,359 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 21 | 23 | 1,948 |
PHP | 2 | 37 | 79 | 182 |
CSS | 1 | 19 | 2 | 171 |
PO File | 1 | 19 | 24 | 58 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
74 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lytebox/images/close_orange.png | 1.71KB | 1.41KB | ▼ 17.65% |
lytebox/images/pause_red.png | 1.60KB | 1.43KB | ▼ 10.47% |
lytebox/images/info.png | 2.26KB | 1.59KB | ▼ 29.71% |
lytebox/images/next_green_off.png | 1.63KB | 1.43KB | ▼ 12.25% |
lytebox/images/close_red.png | 1.69KB | 1.41KB | ▼ 16.47% |