84% tax-rate-upload

Code Review | Tax Rate Upload

WordPress plugin Tax Rate Upload scored84%from 54 tests.

About plugin

  • Plugin page: tax-rate-upload
  • Plugin version: 2.4.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 28, 2013
  • Latest release: Oct 8, 2014
  • Number of updates: 48
  • Update frequency: every 7.9 days
  • Top authors: bowenac (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

4,000+ active /24,987 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.16ms] Passed 4 tests

Analyzing server-side resources used by Tax Rate Upload
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.12 ▲2.83
Dashboard /wp-admin3.34 ▼0.0143.87 ▼13.98
Posts /wp-admin/edit.php3.39 ▲0.0345.00 ▼3.19
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.70 ▼18.29
Media Library /wp-admin/upload.php3.26 ▲0.0338.34 ▲4.29
Tax Rate Upload /wp-admin/options-general.php?page=tax-rate-upload3.2133.90

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Tax Rate Upload
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.091.87 ▲0.2243.89 ▲4.18
Dashboard /wp-admin2,207 ▲165.84 ▼0.06101.98 ▼0.5239.51 ▼3.04
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0039.32 ▼3.0436.11 ▲2.19
Add New Post /wp-admin/post-new.php1,539 ▲1123.16 ▼0.14673.86 ▲24.8659.83 ▲7.99
Media Library /wp-admin/upload.php1,386 ▼24.20 ▼0.0195.17 ▼2.6140.84 ▼6.62
Tax Rate Upload /wp-admin/options-general.php?page=tax-rate-upload1,0512.0822.9933.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tax-rate-upload/tax-rate-upload.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
There were not plugin tags detected

tax-rate-upload/tax-rate-upload.php Passed 13 tests

The primary PHP file in "Tax Rate Upload" version 2.4.5 is used by WordPress to initiate all plugin functionality
95 characters long description:
This is a plugin to upload a tax rate excell sheet and populate woocommerce zip code tax rates.

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
Success! There were no dangerous files found in this plugin339 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11715339

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin