90% taxonomy-term-listing-visual-composer-addon

Code Review | Taxonomy Term List Visual Composer Addon

WordPress plugin Taxonomy Term List Visual Composer Addon scored90%from 54 tests.

About plugin

  • Plugin page: taxonomy-term-lis...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.1
  • WordPress version: 6.3.1
  • First release: May 11, 2017
  • Latest release: Nov 18, 2022
  • Number of updates: 24
  • Update frequency: every 84.2 days
  • Top authors: manishamakhija (87.5%)krishaweb (16.67%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /5,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.50ms] Passed 4 tests

Server-side resources used by Taxonomy Term List Visual Composer Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.77 ▲1.17
Dashboard /wp-admin3.31 ▼0.0345.44 ▼14.06
Posts /wp-admin/edit.php3.36 ▲0.0146.11 ▼3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.40 ▼29.22
Media Library /wp-admin/upload.php3.23 ▲0.0136.02 ▲0.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Taxonomy Term List Visual Composer Addon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8914.47 ▼0.211.88 ▲0.0842.47 ▼1.05
Dashboard /wp-admin2,216 ▲254.89 ▲0.02105.97 ▲4.2641.34 ▼8.97
Posts /wp-admin/edit.php2,095 ▲62.03 ▼0.0135.44 ▼1.4032.31 ▲1.48
Add New Post /wp-admin/post-new.php1,543 ▼023.26 ▲5.21612.74 ▼8.6451.19 ▼7.52
Media Library /wp-admin/upload.php1,398 ▲104.22 ▼0.0196.99 ▲0.8243.01 ▲0.95

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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: taxonomy list, nested term list, category list, term list

taxonomy-term-listing-visual-composer-addon/taxonomy-listing-vc-addon.php 92% from 13 tests

This is the main PHP file of "Taxonomy Term List Visual Composer Addon" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("taxonomy-term-listing-visual-composer-addon.php" instead of "taxonomy-listing-vc-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin524 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP437156444
PO File1161655
JSON10022
JavaScript3023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity30.50
▷ Minimum class complexity5.00
▷ Maximum class complexity56.00
Average method complexity5.54
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods17.69%
▷ Private methods00.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
elements/taxonomyListing/taxonomyListing/public/thumbnail.png1.53KB0.62KB▼ 59.48%
images/icon-taxonomy-listing.png1.07KB0.19KB▼ 81.99%
elements/taxonomyListing/taxonomyListing/public/preview.png7.91KB2.14KB▼ 72.99%