Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼289.05ms] Passed 4 tests
A check of server-side resources used by Logo Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 57.62 ▲9.02 |
Dashboard /wp-admin | 3.46 ▲0.06 | 42.12 ▲7.79 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 45.32 ▲7.06 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.06 | 104.61 ▼1,175.11 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 27.54 ▲4.08 |
/wp-admin/admin.php?page=manage_images | 3.38 | 27.54 |
Manage Sliders /wp-admin/admin.php?page=manage_sliders | 3.41 | 30.16 |
Settings /wp-admin/admin.php?page=ls_settings | 3.41 | 31.05 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: 2 new tables, 2 new options
New tables |
---|
wp_lsp_sliders |
wp_lsp_images |
New WordPress options |
---|
lsp_table_images_version |
lsp_table_sliders_version |
Browser metrics Passed 4 tests
Logo Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,167 ▲413 | 18.38 ▲2.60 | 12.02 ▲5.81 | 2.03 ▼0.73 |
Dashboard /wp-admin | 3,150 ▲289 | 8.29 ▲2.08 | 140.04 ▲6.12 | 175.22 ▲8.91 |
Posts /wp-admin/edit.php | 2,992 ▲304 | 5.09 ▲1.86 | 80.17 ▲16.96 | 155.77 ▲14.55 |
Add New Post /wp-admin/post-new.php | 1,710 ▲49 | 16.44 ▼0.00 | 402.06 ▼14.71 | 171.39 ▲19.17 |
Media Library /wp-admin/upload.php | 1,778 ▲83 | 6.01 ▲0.51 | 111.74 ▼27.14 | 187.72 ▲2.70 |
/wp-admin/admin.php?page=manage_images | 1,467 | 4.89 | 73.16 | 156.30 |
Manage Sliders /wp-admin/admin.php?page=manage_sliders | 1,398 | 4.78 | 67.50 | 134.38 |
Settings /wp-admin/admin.php?page=ls_settings | 2,042 | 5.21 | 86.48 | 156.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=manage_images
- > Notice in wp-content/plugins/logo-slider/ls_manage_images.php+11
Undefined index: lsp_slider_id
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/logo-slider/logo-slider.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/logo-slider/ls_logoslider.php:136
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/logo-slider/ls_manage_images.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/logo-slider/ls_manage_sliders.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logo-slider/includes/ls_database.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/logo-slider/logo-slider.php:16
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/logo-slider/logo-slider.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/logo-slider/ls_settings.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/logo-slider/logo-slider.php on line 14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: logo slide show, logo showcase, logo slideshow, logo slide, sponsors...
logo-slider/logo-slider.php Passed 13 tests
The main PHP file in "Logo Slider" ver. 1.4.8 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
Add a logo slideshow carousel to your site quickly and easily.
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 plugin5,237 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 503 | 279 | 2,805 |
PHP | 8 | 265 | 55 | 1,977 |
CSS | 1 | 3 | 1 | 455 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 26 | 100.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
50 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ls_arrows/lsp_arrow1_prev.png | 2.47KB | 1.39KB | ▼ 43.72% |
arrows/arrow5-up.png | 3.68KB | 0.75KB | ▼ 79.48% |
includes/images/icon_view.png | 3.88KB | 1.29KB | ▼ 66.83% |
ls_arrows/lsp_arrow6_next.png | 2.90KB | 1.40KB | ▼ 51.57% |
ls_arrows/lsp_arrow2_prev.png | 2.75KB | 1.21KB | ▼ 55.90% |