Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼30.65ms] Passed 4 tests
Analyzing server-side resources used by Lazy content Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.77 ▼0.76 |
Dashboard /wp-admin | 3.01 ▼0.29 | 23.20 ▼25.41 |
Posts /wp-admin/edit.php | 3.02 ▼0.34 | 23.35 ▼21.19 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 22.05 ▼70.01 |
Media Library /wp-admin/upload.php | 3.01 ▼0.21 | 24.15 ▼5.99 |
Lazy Content Slider /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php | 3.02 | 21.65 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
lzcs_cat |
widget_recent-comments |
lzcs_count |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Lazy content Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 14.30 ▼0.05 | 21.05 ▲19.50 | 42.49 ▲1.62 |
Dashboard /wp-admin | 2,199 ▲18 | 5.63 ▼0.01 | 91.55 ▼12.09 | 41.65 ▼0.45 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.15 ▲0.15 | 39.59 ▲4.08 | 36.25 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 18.06 ▼0.03 | 600.22 ▼42.29 | 66.79 ▼0.48 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.17 ▼0.03 | 98.22 ▼0.46 | 41.06 ▼1.94 |
Lazy Content Slider /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php | 920 | 2.01 | 25.09 | 27.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php
- > Notice in wp-content/plugins/lazy-content-slider/lzcs_admin.php+38
Undefined variable: PHP_SELF
- > GET request to /wp-admin/options-general.php?page=lazy-content-slider/lzcs.php
- > Notice in wp-content/plugins/lazy-content-slider/lzcs_admin.php+52
Undefined variable: selected
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 items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lazy-content-slider/lzcs_admin.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lazy-content-slider/lzcs.php:26
- > PHP Fatal error
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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: slider, rotator, featured, content
lazy-content-slider/lzcs.php 92% from 13 tests
The principal PHP file in "Lazy content Slider" v. 3.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lazy-content-slider.php" instead of "lzcs.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 detected438 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 35 | 196 |
CSS | 2 | 3 | 0 | 169 |
JavaScript | 2 | 11 | 4 | 73 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/transparent-bg.png | 0.11KB | 0.09KB | ▼ 15.65% |