Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.19ms] Passed 4 tests
Server-side resources used by Sloth Logo Customizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.54 ▼1.81 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.83 ▼3.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.80 ▼1.41 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.66 ▼6.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.64 ▲7.64 |
Login Logo /wp-admin/themes.php?page=slothLogo | 3.27 | 57.28 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Sloth Logo Customizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.60 ▼0.78 | 1.87 ▲0.23 | 41.53 ▼5.79 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼0.07 | 102.91 ▼10.21 | 37.97 ▼4.43 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.08 | 40.87 ▲0.35 | 37.08 ▲2.00 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.29 ▲0.13 | 598.33 ▼162.44 | 53.62 ▼22.60 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.19 ▲0.01 | 97.47 ▼3.75 | 39.90 ▼2.98 |
Login Logo /wp-admin/themes.php?page=slothLogo | 1,032 | 3.07 | 57.89 | 46.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sloth-logo-customizer/network-setting.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sloth-logo-customizer/setting.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/sloth-logo-customizer/sloth-options.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: info widget, login, logo, support url, login page...
sloth-logo-customizer/sloth-logo-customizer.php 92% from 13 tests
The main PHP file in "Sloth Logo Customizer" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 143 characters long)
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 detected444 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 81 | 404 |
PO File | 1 | 13 | 19 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wordpress-logo.png | 5.40KB | 4.01KB | ▼ 25.67% |