Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.82MB] [CPU: ▼188.90ms] Passed 4 tests
Server-side resources used by Sell Services
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼1.03 | 5.84 ▼32.44 |
Dashboard /wp-admin | 1.82 ▼1.23 | 5.78 ▼36.81 |
Posts /wp-admin/edit.php | 1.82 ▼1.28 | 5.88 ▼42.05 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.61 | 5.58 ▼644.31 |
Media Library /wp-admin/upload.php | 1.82 ▼1.18 | 5.97 ▼23.86 |
Sell Services Plugin /wp-admin/options-general.php?page=sell-services | 1.83 | 4.80 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Sell Services: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.96 ▼0.05 | 8.60 ▼1.12 | 47.09 ▼0.42 |
Dashboard /wp-admin | 2,996 ▲62 | 5.88 ▼0.07 | 136.62 ▼6.72 | 103.74 ▼13.57 |
Posts /wp-admin/edit.php | 2,771 ▲35 | 2.85 ▲0.01 | 65.68 ▲1.97 | 93.15 ▼4.91 |
Add New Post /wp-admin/post-new.php | 1,692 ▲194 | 18.87 ▲0.06 | 366.97 ▼13.44 | 100.33 ▼7.58 |
Media Library /wp-admin/upload.php | 1,840 ▲30 | 5.03 ▼0.01 | 145.15 ▼1.10 | 118.28 ▼0.51 |
Sell Services Plugin /wp-admin/options-general.php?page=sell-services | 1,163 | 2.27 | 58.27 | 105.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=sell-services
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sell-services/admin/parts/welcome.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sell-services/admin/parts/about.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sell-services/admin/parts/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sell-services/admin/parts/tabs.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sell-services/admin/settings-page.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (18 tag instead of maximum 10)
sell-services/sell-services.php Passed 13 tests
Analyzing the main PHP file in "Sell Services" version 1.0.2
117 characters long description:
Blackbell simplifies selling, marketing and operations. It is your happy place to manage every area of your business.
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
Everything looks great! No dangerous files found in this plugin304 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 85 | 152 | 233 |
CSS | 1 | 8 | 0 | 36 |
JavaScript | 2 | 13 | 16 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 16 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
assets/images/logo.png | 11.30KB | 7.01KB | ▼ 37.99% |