Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.64ms] Passed 4 tests
A check of server-side resources used by LifeRex Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.65 ▼13.62 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.83 ▼12.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.18 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.20 ▼16.57 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 39.81 ▲5.52 |
Slide Categories /wp-admin/edit-tags.php?taxonomy=slide_category&post_type=slider | 3.35 | 35.96 |
Add New /wp-admin/post-new.php?post_type=slider | 3.39 | 47.84 |
All Slides /wp-admin/edit.php?post_type=slider | 3.31 | 34.36 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by LifeRex Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲179 | 13.60 ▼0.78 | 7.68 ▲5.53 | 40.40 ▼2.94 |
Dashboard /wp-admin | 2,237 ▲46 | 4.88 ▼1.03 | 110.98 ▲9.14 | 42.55 ▲3.98 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.06 ▲0.05 | 38.79 ▲2.40 | 33.36 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,560 ▲18 | 23.05 ▲4.82 | 621.08 ▼14.61 | 56.60 ▲5.11 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.21 ▼0.01 | 100.94 ▼1.66 | 42.97 ▼2.54 |
Slide Categories /wp-admin/edit-tags.php?taxonomy=slide_category&post_type=slider | 1,262 | 2.14 | 25.29 | 28.05 |
Add New /wp-admin/post-new.php?post_type=slider | 2,484 | 7.75 | 169.92 | 66.85 |
All Slides /wp-admin/edit.php?post_type=slider | 1,101 | 1.96 | 30.10 | 28.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/liferex-slider/shortcodes/shortcodes.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: images, wordpress slider, image slider, jquery slider, responsive
liferex-slider/liferex-image-slider.php 92% from 13 tests
"LifeRex Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("liferex-slider.php" instead of "liferex-image-slider.php")
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
Everything looks great! No dangerous files found in this plugin1,472 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 75 | 65 | 522 |
CSS | 5 | 23 | 50 | 469 |
PHP | 12 | 147 | 95 | 423 |
PO File | 1 | 21 | 23 | 58 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 7 | |
▷ Named functions | 7 | 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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/themes/default/arrows.png | 0.80KB | 0.51KB | ▼ 36.53% |
public/themes/light/bullets.png | 3.21KB | 0.54KB | ▼ 83.24% |
public/themes/default/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |
public/themes/bar/arrows.png | 0.80KB | 0.51KB | ▼ 36.53% |
public/themes/light/arrows.png | 3.17KB | 0.52KB | ▼ 83.49% |