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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.43ms] Passed 4 tests
A check of server-side resources used by EDD TaxJar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.63 ▼0.25 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.83 ▼13.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.30 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.02 ▼12.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.80 ▲3.67 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 146 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
EDD TaxJar: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.62 ▼0.67 | 1.68 ▲0.09 | 40.81 ▲1.39 |
Dashboard /wp-admin | 2,206 ▲17 | 4.83 ▼0.13 | 110.69 ▼15.78 | 42.88 ▼4.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 38.66 ▼1.62 | 35.44 ▼5.40 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.76 ▼5.31 | 604.78 ▼88.87 | 50.60 ▼2.09 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.01 | 94.72 ▼7.15 | 44.33 ▼2.96 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/edd-taxjar/vendor/guzzlehttp/psr7/src/PumpStream.php:16
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/edd-taxjar/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:7
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/edd-taxjar/vendor/taxjar/taxjar-php/test/TaxJarTest.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/edd-taxjar/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/edd-taxjar/vendor/taxjar/taxjar-php/test/TaxJarTest.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/edd-taxjar/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/edd-taxjar/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/edd-taxjar/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/edd-taxjar/vendor/guzzlehttp/guzzle/src/Client.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/edd-taxjar/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: digital download, edd, easy digital downloads, e-commerce, tax...
edd-taxjar/edd-taxjar.php Passed 13 tests
The entry point to "EDD TaxJar" version 1.0.2 is a PHP file that has certain tags in its header comment area
52 characters long description:
Calculate sales tax automatically through TaxJar.com
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin13,007 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,788 | 4,935 | 8,818 |
Markdown | 12 | 1,012 | 0 | 3,433 |
JSON | 19 | 0 | 0 | 736 |
YAML | 1 | 3 | 0 | 11 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 77 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 77 | 100.00% |
▷ Final classes | 7 | 9.09% |
Methods | 698 | |
▷ Static methods | 65 | 9.31% |
▷ Public methods | 585 | 83.81% |
▷ Protected methods | 4 | 0.57% |
▷ Private methods | 109 | 15.62% |
Functions | 143 | |
▷ Named functions | 55 | 38.46% |
▷ Anonymous functions | 88 | 61.54% |
Constants | 51 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 51 | 100.00% |
▷ Public constants | 51 | 100.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
No PNG files were detected