Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼6.26ms] Passed 4 tests
This is a short check of server-side resources used by WEN Logo Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 38.99 ▼1.81 |
Dashboard /wp-admin | 3.58 ▲0.28 | 49.97 ▼0.21 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 45.14 ▼5.67 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 84.22 ▼17.28 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 36.71 ▼0.28 |
All Sliders /wp-admin/edit.php?post_type=logo_slider | 3.55 | 39.71 |
Add New /wp-admin/post-new.php?post_type=logo_slider | 3.60 | 47.57 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WEN Logo Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲189 | 13.72 ▼0.93 | 5.88 ▲3.68 | 41.88 ▼3.58 |
Dashboard /wp-admin | 2,248 ▲60 | 5.84 ▼0.01 | 95.07 ▼24.22 | 40.03 ▼2.51 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.03 ▼0.02 | 40.27 ▲4.19 | 32.69 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,559 ▲39 | 23.26 ▲0.14 | 656.00 ▼12.67 | 60.97 ▲1.56 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.28 ▲0.05 | 103.16 ▼5.15 | 44.03 ▼1.54 |
Settings /wp-admin/class-wen-logo-slider-admin.php | 26 | 0.44 | 0.09 | 14.72 |
All Sliders /wp-admin/edit.php?post_type=logo_slider | 1,130 | 1.94 | 30.99 | 30.40 |
Add New /wp-admin/post-new.php?post_type=logo_slider | 2,678 | 4.05 | 82.38 | 109.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 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 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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wen-logo-slider/admin/partials/wen-logo-slider-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wen-logo-slider/admin/partials/wen-logo-slider-slides.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/class-wen-logo-slider-admin.php
- > Network (severe)
wp-admin/class-wen-logo-slider-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wen-logo-slider/wen-logo-slider.php 92% from 13 tests
This is the main PHP file of "WEN Logo Slider" version 3.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4.0" instead of "4.4")
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
Good job! No executable or dangerous file extensions detected4,356 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 937 | 151 | 2,428 |
PHP | 15 | 352 | 548 | 1,343 |
CSS | 4 | 101 | 76 | 572 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 2 | 3.33% |
▷ Public methods | 53 | 88.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
17 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/nav/type-i.png | 1.80KB | 1.21KB | ▼ 32.99% |
admin/images/help.png | 8.58KB | 3.63KB | ▼ 57.74% |
admin/images/nav/type-iii.png | 1.94KB | 0.79KB | ▼ 59.16% |
admin/images/docico.png | 7.15KB | 3.26KB | ▼ 54.48% |
vendors/slick-carousel/grabbing.png | 0.11KB | 0.14KB | 0.00% |