Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼149.34ms] Passed 4 tests
An overview of server-side resources used by Simple Post Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 27.86 ▲3.33 |
Dashboard /wp-admin | 3.11 ▲0.04 | 32.84 ▼9.49 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 33.54 ▼3.89 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.02 | 72.37 ▼580.07 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 22.06 ▼3.90 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Simple Post Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,863 ▲252 | 16.55 ▲0.93 | 10.43 ▲4.61 | 74.82 ▲1.32 |
Dashboard /wp-admin | 2,958 ▲59 | 6.21 ▲0.04 | 114.35 ▼16.85 | 189.59 ▲18.68 |
Posts /wp-admin/edit.php | 2,770 ▲30 | 3.29 ▼0.07 | 68.62 ▲2.93 | 150.38 ▲7.37 |
Add New Post /wp-admin/post-new.php | 1,902 ▼1,841 | 21.17 ▲2.21 | 394.72 ▼34.74 | 195.59 ▲30.47 |
Media Library /wp-admin/upload.php | 1,780 ▲28 | 5.63 ▲0.16 | 123.72 ▼16.43 | 204.51 ▲23.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 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: simple slider, post slider, filter categories, number of posts, slider...
simple-post-slider/wpsps-main.php 77% from 13 tests
"Simple Post Slider" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-post-slider.php" instead of "wpsps-main.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin769 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 46 | 15 | 499 |
PHP | 4 | 35 | 35 | 243 |
JavaScript | 3 | 1 | 5 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.33 |
▷ 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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wpsps-icon-hover.png | 0.25KB | 0.13KB | ▼ 50.19% |
assets/img/icon.png | 1.46KB | 0.58KB | ▼ 60.63% |
assets/img/slidericon.fw.png | 51.98KB | 0.35KB | ▼ 99.33% |