Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.19ms] Passed 4 tests
Analyzing server-side resources used by Light Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.42 ▲2.93 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.75 ▼3.54 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.36 ▼0.26 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.86 ▼7.89 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.51 ▲3.29 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sls_sliders |
wp_sls_slides |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Light Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.29 ▼1.30 | 1.86 ▲0.12 | 42.62 ▼3.62 |
Dashboard /wp-admin | 2,216 ▲28 | 5.83 ▲0.97 | 104.95 ▼7.09 | 38.08 ▼9.34 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.04 ▲0.03 | 36.71 ▲2.85 | 31.89 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 23.07 ▲0.11 | 670.83 ▲12.76 | 51.77 ▼8.01 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.23 ▲0.03 | 98.38 ▼4.34 | 42.18 ▼1.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_sls_slides
- wp_sls_sliders
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/light-slider/themes/basic/admin-template.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/light-slider/inc/sls-core-functions.php:7
- > PHP Notice
Undefined variable: theme in wp-content/plugins/light-slider/inc/admin/views/html-admin-preview.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/light-slider/inc/admin/views/html-admin-page-all-sliders.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_template_path() on null in wp-content/plugins/light-slider/inc/admin/views/html-admin-preview.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/light-slider/themes/basic/data.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/light-slider/themes/basic/template.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== light-slider ===
) - Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
light-slider/light-slider.php 92% from 13 tests
This is the main PHP file of "Light Slider" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,315 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 278 | 48 | 1,289 |
JavaScript | 6 | 186 | 128 | 641 |
CSS | 2 | 73 | 41 | 385 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.57 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 21 | 30.88% |
▷ Public methods | 56 | 82.35% |
▷ Protected methods | 4 | 5.88% |
▷ Private methods | 8 | 11.76% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/basic/images/bt-next.png | 0.28KB | 0.37KB | 0.00% |
assets/images/admin/no-image.png | 8.87KB | 3.96KB | ▼ 55.39% |
themes/basic/images/bt-prev.png | 0.29KB | 0.39KB | 0.00% |