Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Soapberry\Soapberry' does not have a method 'activate'
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.94ms] Passed 4 tests
An overview of server-side resources used by Soapberry
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.52 ▼7.96 |
Dashboard /wp-admin | 3.32 ▼0.02 | 51.99 ▼15.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.37 ▼2.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.65 ▼12.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.47 ▼3.15 |
Soapberry /wp-admin/options-general.php?page=soapberry | 3.18 | 32.18 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Soapberry
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 14.74 ▲0.47 | 1.99 ▲0.01 | 42.88 ▼1.30 |
Dashboard /wp-admin | 2,207 ▲19 | 4.82 ▼0.06 | 102.75 ▼4.39 | 38.35 ▼3.49 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▲0.02 | 38.72 ▼1.03 | 32.69 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,536 ▲125 | 23.13 ▲5.22 | 669.26 ▲40.50 | 58.07 ▲8.10 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▲0.00 | 96.76 ▼7.15 | 41.55 ▼6.14 |
Soapberry /wp-admin/options-general.php?page=soapberry | 913 | 2.03 | 25.32 | 27.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=soapberry
- > Notice in wp-content/plugins/soapberry/includes/class-admin-settings.php+178
Undefined index: consent_cookie
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Soapberry\\add_action() in wp-content/plugins/soapberry/includes/class-admin-settings.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function Soapberry\\add_action() in wp-content/plugins/soapberry/includes/class-frontend.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: analytics, tracking, ackee, stats
soapberry/soapberry.php Passed 13 tests
Analyzing the main PHP file in "Soapberry" version 1.1.0
110 characters long description:
Collect data on your visitors while respecting their privacy using Soapberry with a self-hosted Ackee install.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected295 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 160 | 265 |
Markdown | 1 | 21 | 0 | 30 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
No PNG images were found in this plugin