84% edd-taxjar

Code Review | EDD TaxJar

WordPress plugin EDD TaxJar scored84%from 54 tests.

About plugin

  • Plugin page: edd-taxjar
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Jun 25, 2018
  • Latest release: Mar 25, 2021
  • Number of updates: 6
  • Update frequency: every 167.7 days
  • Top authors: mordauk (83.33%)NoseGraze (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,390 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.63 ▼0.25
Dashboard /wp-admin3.33 ▼0.0145.83 ▼13.25
Posts /wp-admin/edit.php3.38 ▲0.0346.30 ▼3.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.02 ▼12.80
Media Library /wp-admin/upload.php3.26 ▲0.0335.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.62 ▼0.671.68 ▲0.0940.81 ▲1.39
Dashboard /wp-admin2,206 ▲174.83 ▼0.13110.69 ▼15.7842.88 ▼4.26
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0138.66 ▼1.6235.44 ▼5.40
Add New Post /wp-admin/post-new.php1,514 ▼1917.76 ▼5.31604.78 ▼88.8750.60 ▼2.09
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0194.72 ▼7.1544.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1041,7884,9358,818
Markdown121,01203,433
JSON1900736
YAML13011
make1409

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 code0.42
Average class complexity11.84
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces9
Interfaces14
Traits2
Classes77
▷ Abstract classes00.00%
▷ Concrete classes77100.00%
▷ Final classes79.09%
Methods698
▷ Static methods659.31%
▷ Public methods58583.81%
▷ Protected methods40.57%
▷ Private methods10915.62%
Functions143
▷ Named functions5538.46%
▷ Anonymous functions8861.54%
Constants51
▷ Global constants00.00%
▷ Class constants51100.00%
▷ Public constants51100.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