Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/bosslist/boss-list.php+144
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼55.94ms] Passed 4 tests
A check of server-side resources used by BossList
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.14 ▼33.72 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.60 ▼44.99 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.70 ▼45.79 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.95 ▼99.26 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.97 ▼29.93 |
Add New /wp-admin/post-new.php?post_type=bosslist | 2.12 | 5.61 |
Lists /wp-admin/edit-tags.php?taxonomy=bl_lists&post_type=bosslist | 2.12 | 7.41 |
All /wp-admin/edit.php?post_type=bosslist | 2.12 | 6.18 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_boss_list_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for BossList
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.42 ▲0.05 | 1.74 ▼0.10 | 47.42 ▲6.28 |
Dashboard /wp-admin | 2,229 ▲49 | 5.57 ▼0.08 | 85.02 ▼2.95 | 67.87 ▲23.36 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.98 ▲0.02 | 36.37 ▲1.42 | 36.45 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,708 ▲180 | 22.29 ▼0.78 | 646.60 ▲23.59 | 48.50 ▼13.32 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.14 ▼0.08 | 100.40 ▲2.35 | 80.96 ▲36.55 |
Add New /wp-admin/post-new.php?post_type=bosslist | 2,283 | 7.74 | 167.31 | 107.23 |
Lists /wp-admin/edit-tags.php?taxonomy=bl_lists&post_type=bosslist | 1,311 | 2.24 | 28.59 | 31.67 |
All /wp-admin/edit.php?post_type=bosslist | 1,142 | 1.90 | 32.30 | 30.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/bosslist/boss-list.php+144
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_boss_list_widget
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bosslist
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/bosslist/boss-list.php+144
Function create_function() is deprecated
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bosslist/boss-list.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bosslist/boss-list-admin.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (screenshot-1.jpg)
bosslist/boss-list.php 77% from 13 tests
The main PHP script in "BossList" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path points to an invalid folder, "/langs/" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bosslist.php" instead of "boss-list.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
Everything looks great! No dangerous files found in this plugin207 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 87 | 43 | 207 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
boss-list.png | 0.55KB | 0.47KB | ▼ 13.06% |