Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼5.63ms] Passed 4 tests
This is a short check of server-side resources used by RCP VAT
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 41.26 ▲2.30 |
Dashboard /wp-admin | 3.60 ▲0.30 | 48.02 ▼4.26 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 48.58 ▲0.06 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 83.45 ▼20.61 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 35.65 ▲3.24 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for RCP VAT
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲155 | 13.92 ▼0.46 | 10.23 ▲8.28 | 42.99 ▼7.30 |
Dashboard /wp-admin | 2,210 ▲22 | 5.80 ▼0.05 | 96.52 ▼20.40 | 38.14 ▼8.48 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.14 ▲0.17 | 35.29 ▼3.75 | 33.43 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,527 ▼7 | 18.15 ▼5.05 | 599.26 ▼72.19 | 52.20 ▼6.72 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▲0.01 | 93.92 ▼8.63 | 41.76 ▼3.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/rcp-vat/public/partials/rcp-vat-public-display.php
- > /wp-content/plugins/rcp-vat/admin/partials/rcp-vat-admin-display.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/tests/CountriesTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/tests/ValidatorTest.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Rates/Caches/NullCache.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/tests/RatesTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'DvK\\Vat\\Rates\\Exceptions\\Exception' not found in wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Rates/Exceptions/ClientException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheException' not found in wp-content/plugins/rcp-vat/libs/vendor/psr/simple-cache/src/InvalidArgumentException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'DvK\\Vat\\Rates\\Interfaces\\Client' not found in wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Rates/Clients/JsonVat.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function rcp_is_registration() in wp-content/plugins/rcp-vat/rcp/register-total-details.php:16
- > 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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Parameters added into payment RCP tab settings.)
rcp-vat/rcp-vat.php Passed 13 tests
"RCP VAT" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
VAT management in Stripe for Restrict Content Pro plugin. Sell inside EU respecting the rules.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,477 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 487 | 1,168 | 2,064 |
JSON | 4 | 0 | 0 | 168 |
PO File | 1 | 25 | 25 | 76 |
Markdown | 3 | 24 | 0 | 71 |
JavaScript | 2 | 25 | 66 | 63 |
XML | 1 | 0 | 0 | 28 |
YAML | 1 | 3 | 0 | 7 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review 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.24 |
Average class complexity | 6.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 5 | 4.24% |
▷ Public methods | 108 | 91.53% |
▷ Protected methods | 4 | 3.39% |
▷ Private methods | 6 | 5.08% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin