Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.36ms] Passed 4 tests
Analyzing server-side resources used by WP Brand Logo Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.68 ▲4.56 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.11 ▼3.20 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.81 ▼5.77 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 83.22 ▼4.12 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.74 ▼0.34 |
Brand Settings /wp-admin/edit.php?post_type=brand&page=wp-brand-slider | 3.28 | 35.74 |
Add New Brand /wp-admin/post-new.php?post_type=brand | 3.42 | 57.02 |
All Brands /wp-admin/edit.php?post_type=brand | 3.35 | 35.68 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Brand Logo Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.50 ▼0.89 | 9.38 ▲7.69 | 42.46 ▼1.97 |
Dashboard /wp-admin | 2,242 ▲68 | 5.72 ▲0.07 | 86.93 ▲1.52 | 39.24 ▲1.97 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.25 ▲0.25 | 34.95 ▼6.36 | 33.73 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,568 ▲31 | 23.18 ▲4.97 | 601.18 ▼10.39 | 34.03 ▼31.56 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.38 ▲0.13 | 95.78 ▼12.10 | 41.04 ▼5.24 |
Brand Settings /wp-admin/edit.php?post_type=brand&page=wp-brand-slider | 1,724 | 8.45 | 235.12 | 63.71 |
Add New Brand /wp-admin/post-new.php?post_type=brand | 2,319 | 7.89 | 161.63 | 69.07 |
All Brands /wp-admin/edit.php?post_type=brand | 1,128 | 2.18 | 33.68 | 28.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/wp-brand-logo-slider/lib/brnd-style.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-brand-logo-slider/wp-brand-slider.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-brand-logo-slider/lib/functions.php:11
- > 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 86% 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
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Front End), #2 (Brand Settings), #3 (Back End)
wp-brand-logo-slider/wp-brand-slider.php 77% from 13 tests
"WP Brand Logo Slider" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 211 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-brand-logo-slider.php" instead of "wp-brand-slider.php")
- 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
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
Good job! No executable or dangerous file extensions detected740 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 82 | 45 | 307 |
PHP | 3 | 28 | 38 | 297 |
CSS | 2 | 14 | 1 | 136 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
4 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/review.png | 0.64KB | 0.64KB | 0.00% |
screenshot-3.png | 73.43KB | 30.39KB | ▼ 58.62% |
screenshot-1.png | 58.98KB | 17.70KB | ▼ 69.99% |
screenshot-2.png | 36.11KB | 18.12KB | ▼ 49.82% |