Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Error in wp-content/plugins/role-based-tax-exclusion/role-based-tax-exclusion.php+45
Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/role-based-tax-exclusion/role-based-tax-exclusion.php:45
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.63ms] Passed 4 tests
This is a short check of server-side resources used by Role Based Tax Exclusion
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.50 ▼2.35 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.20 ▼17.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.14 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.22 ▼3.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.33 ▲1.16 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Role Based Tax Exclusion
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.34 ▲0.02 | 1.67 ▼0.10 | 41.47 ▼3.72 |
Dashboard /wp-admin | 2,192 ▲14 | 5.53 ▼0.17 | 85.71 ▼28.52 | 39.98 ▼5.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 40.73 ▲5.92 | 35.93 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 25.31 ▲1.71 | 622.58 ▲30.61 | 72.26 ▲21.21 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.20 ▲0.03 | 93.93 ▼5.99 | 42.27 ▼1.21 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Settings page for plugin under WooCommerce taxes) image missing
role-based-tax-exclusion/role-based-tax-exclusion.php Passed 13 tests
The main PHP script in "Role Based Tax Exclusion" version 1.0.8 is automatically included on every request by WordPress
122 characters long description:
With this plugin administrator can define which user roles see prices in store and cart pages of WooCommerce without taxes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin102 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 40 | 58 |
PO File | 1 | 9 | 12 | 44 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin