Benchmarks
Plugin footprint Passed 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.14MB] [CPU: ▼140.94ms] Passed 4 tests
A check of server-side resources used by WP Smart Flexslider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.14 | 45.68 ▲11.62 |
Dashboard /wp-admin | 3.20 ▲0.15 | 56.79 ▲8.49 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 51.48 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 106.03 ▼574.93 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 41.30 ▲3.72 |
All Sliders /wp-admin/edit.php?post_type=flexslider | 3.18 | 46.23 |
Add New /wp-admin/post-new.php?post_type=flexslider | 3.20 | 54.94 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Smart Flexslider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,863 ▲291 | 16.56 ▲1.31 | 16.39 ▲4.49 | 49.92 ▲0.29 |
Dashboard /wp-admin | 3,012 ▲78 | 5.96 ▼0.27 | 154.51 ▼10.67 | 118.09 ▲5.90 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.72 ▲0.01 | 64.57 ▼9.85 | 85.59 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,645 ▼1,989 | 21.43 ▲6.50 | 329.66 ▼183.73 | 107.35 ▼8.18 |
Media Library /wp-admin/upload.php | 1,849 ▲42 | 5.07 ▲0.05 | 172.00 ▲6.58 | 123.57 ▲2.53 |
All Sliders /wp-admin/edit.php?post_type=flexslider | 1,438 | 2.64 | 72.47 | 78.18 |
Add New /wp-admin/post-new.php?post_type=flexslider | 2,595 | 4.61 | 122.38 | 101.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-smart-flexslider/public/partials/wpsmartflexslider-public-display.php
- > /wp-content/plugins/wp-smart-flexslider/admin/partials/wpsmartflexslider-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-smart-flexslider ===
) - Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-smart-flexslider/wpsmartflexslider.php 85% from 13 tests
This is the main PHP file of "WP Smart Flexslider" version 2.5, 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:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-smart-flexslider.php" instead of "wpsmartflexslider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,009 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 151 | 541 | 527 |
SVG | 1 | 0 | 0 | 288 |
CSS | 3 | 1 | 10 | 133 |
JavaScript | 3 | 16 | 60 | 61 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
admin/assets/flexslider.png | 1.13KB | 0.43KB | ▼ 61.54% |