Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.49ms] Passed 4 tests
Server-side resources used by Best Logo Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.04 ▼0.91 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.08 ▼2.77 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.74 ▼3.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.48 ▼11.04 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.80 ▲1.99 |
Add New Logo /wp-admin/post-new.php?post_type=logo_slider | 3.36 | 46.63 |
All Logos /wp-admin/edit.php?post_type=logo_slider | 3.35 | 37.79 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Best Logo Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲176 | 14.11 ▼0.13 | 6.64 ▲5.10 | 44.70 ▲4.58 |
Dashboard /wp-admin | 2,233 ▲42 | 4.85 ▼1.03 | 112.98 ▲5.31 | 42.47 ▲0.94 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.03 ▲0.06 | 38.97 ▲1.03 | 35.44 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 18.49 ▲0.89 | 650.42 ▼59.30 | 49.94 ▼2.99 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.20 ▼0.02 | 97.59 ▼3.94 | 40.73 ▼4.41 |
Add New Logo /wp-admin/post-new.php?post_type=logo_slider | 1,752 | 3.52 | 64.13 | 36.13 |
All Logos /wp-admin/edit.php?post_type=logo_slider | 1,089 | 1.93 | 31.01 | 29.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-logo-slider/wpb-bls-shortcodes.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-logo-slider/wpb_metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-logo-slider/wpb-scripts.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 28 tag instead of maximum 10
best-logo-slider/main.php 85% from 13 tests
Analyzing the main PHP file in "Best Logo Slider" version 1.0.6
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 256 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("best-logo-slider.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,767 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 207 | 17 | 1,288 |
CSS | 2 | 22 | 28 | 298 |
PHP | 5 | 83 | 97 | 181 |
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.40 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
assets/css/grabbing.png | 3.26KB | 1.28KB | ▼ 60.68% |