Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼300.11ms] Passed 4 tests
A check of server-side resources used by Sidebar Widgets by CodeLights
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.33 | 59.45 ▲5.87 |
Dashboard /wp-admin | 3.66 ▲0.26 | 44.48 ▲2.44 |
Posts /wp-admin/edit.php | 3.97 ▲0.34 | 51.66 ▲14.64 |
Add New Post /wp-admin/post-new.php | 7.19 ▲0.23 | 100.58 ▼1,197.67 |
Media Library /wp-admin/upload.php | 3.54 ▲0.25 | 25.60 ▼11.09 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_cl-itext |
widget_cl-review |
widget_cl-counter |
widget_cl-flipbox |
widget_cl-popup |
widget_cl-ib |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sidebar Widgets by CodeLights
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,776 ▲32 | 14.72 ▼1.25 | 5.72 ▼0.15 | 2.10 ▼0.48 |
Dashboard /wp-admin | 2,885 ▲31 | 6.14 ▼0.02 | 117.77 ▼14.98 | 169.53 ▲0.60 |
Posts /wp-admin/edit.php | 3,195 ▲510 | 7.19 ▲3.95 | 142.12 ▲72.25 | 149.56 ▼47.33 |
Add New Post /wp-admin/post-new.php | 1,699 ▲38 | 16.38 ▼5.98 | 435.48 ▼54.42 | 200.48 ▲33.23 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.51 ▲0.05 | 110.58 ▼25.39 | 233.17 ▲42.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_cl-popup
- widget_cl-ib
- widget_cl-flipbox
- widget_cl-review
- widget_cl-itext
- widget_cl-counter
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 27× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/codelights-shortcodes-and-widgets/functions/debug.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/eform/eform.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/ebuilder.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/elements/cl-review.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/elements/cl-itext.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/eform/select.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/functions/shortcodes.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/functions/helpers.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/eform/html.php
- > /wp-content/plugins/codelights-shortcodes-and-widgets/templates/elements/cl-flipbox.php
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 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
codelights-shortcodes-and-widgets/codelights.php 92% from 13 tests
Analyzing the main PHP file in "Sidebar Widgets by CodeLights" version 1.4
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("codelights-shortcodes-and-widgets.php" instead of "codelights.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin15,017 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 0 | 13 | 4,741 |
SVG | 1 | 0 | 0 | 2,671 |
LESS | 10 | 193 | 89 | 2,591 |
PHP | 27 | 239 | 536 | 2,350 |
JavaScript | 12 | 138 | 530 | 1,899 |
PO File | 2 | 368 | 459 | 765 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.67 |
▷ 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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 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
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/cl-ib.png | 5.07KB | 2.97KB | ▼ 41.37% |
admin/img/cl-popup.png | 5.03KB | 3.06KB | ▼ 39.06% |
admin/img/cl-itext.png | 5.14KB | 3.24KB | ▼ 36.89% |
admin/img/cl-flipbox.png | 5.43KB | 3.10KB | ▼ 42.99% |
admin/img/cl-review.png | 5.31KB | 3.13KB | ▼ 41.11% |