90% llc-tax

Code Review | LLC Tax

WordPress plugin LLC Tax scored90%from 54 tests.

About plugin

  • Plugin page: llc-tax
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Jan 1, 2021
  • Latest release: Oct 17, 2022
  • Number of updates: 40
  • Update frequency: every 16.4 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /399 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲1.43ms] Passed 4 tests

Analyzing server-side resources used by LLC Tax
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.69 ▼0.92
Dashboard /wp-admin3.36 ▲0.0645.83 ▼2.53
Posts /wp-admin/edit.php3.48 ▲0.1249.19 ▲6.22
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.30 ▲5.38
Media Library /wp-admin/upload.php3.29 ▲0.0534.72 ▲3.80

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_llctax

Browser metrics Passed 4 tests

This is an overview of browser requirements for LLC Tax
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲18813.55 ▼1.018.38 ▲6.6743.60 ▼5.74
Dashboard /wp-admin2,220 ▲324.85 ▼0.06108.06 ▲0.4937.49 ▼5.84
Posts /wp-admin/edit.php2,106 ▲172.05 ▼0.0040.14 ▲3.9034.46 ▼5.06
Add New Post /wp-admin/post-new.php1,540 ▲723.26 ▲0.23671.91 ▲12.5059.45 ▲3.44
Media Library /wp-admin/upload.php1,396 ▲114.20 ▼0.0196.12 ▼6.5142.94 ▼0.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_llctax
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: A description for screenshot #0 is missing in llc-tax/assets to your readme.txt
The official readme.txt is a good inspiration

llc-tax/llc-tax.php Passed 13 tests

The principal PHP file in "LLC Tax" v. 1.1 is loaded by WordPress automatically on each request
105 characters long description:
Displays an llc form search by state in your WordPress sidebar or any widget area of your wordpress blog.

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 plugin381 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4139200378
JavaScript1293

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.19
Average class complexity4.33
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin